#797FB2

Closest named color: Lavender Gray (#7E7F9A). oklch(61.2% 0.078 278.7), rgb(121, 127, 178).

Aa

Black text reads best on this color (5.49:1).

About this color

#797FB2 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 61%, its chroma 0.078 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Lavender Gray (#7E7F9A), ΔE 0.038 away. Black text reads best on it, at 5.49:1.

Hue familyBlues
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.078)
Temperaturecool
Nearest nameLavender Gray (#7E7F9A)
Black text5.49:1
White text3.82:1

Values

HEX#797FB2
RGBrgb(121, 127, 178)
HSLhsl(234, 27%, 59%)
OKLCHoklch(61.2% 0.078 278.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #797FB2 3.82:1 AA large text Lc -71.2 Content text, not long reading
Black text on #797FB2 5.49:1 AA Lc 38.4 Non-text elements, placeholder text
#797FB2 text on white 3.82:1 AA large text Lc 65.7 Content text, not long reading
#797FB2 text on black 5.49:1 AA Lc -35.9 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F4F5F9

    oklch(97.1% 0.005 275)

  2. Step 100

    100

    #E8E9F1

    oklch(93.6% 0.011 280.5)

  3. Step 200

    200

    #D6D8E7

    oklch(88.5% 0.021 279.9)

  4. Step 300

    300

    #BBBFD9

    oklch(81% 0.037 278.6)

  5. Step 400

    400

    #989DC7

    oklch(70.7% 0.062 279.4)

  6. Step 500

    500 (this color)

    #797FB2

    oklch(61.2% 0.078 278.7)

  7. Step 600

    600

    #686EA4

    oklch(55.6% 0.084 278.4)

  8. Step 700

    700

    #575C8D

    oklch(49.2% 0.078 278.6)

  9. Step 800

    800

    #474B72

    oklch(42.7% 0.065 278.8)

  10. Step 900

    900

    #3B3F5C

    oklch(37.7% 0.05 277.7)

  11. Step 950

    950

    #232536

    oklch(27% 0.032 278.9)

Export this scale for Tailwind in the Tailwind colors tool

#797FB2 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#7085B40.019
Deuteranopia (no green cones)#6C80B10.018
Tritanopia (no blue cones)#6A89910.069
Achromatopsia (no color)#8282820.078

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #797FB2

    #797FB2

    oklch(61.2% 0.078 278.7)

  • #8F844C

    #8F844C

    oklch(61% 0.077 98.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797FB2

    #797FB2

    oklch(61.2% 0.078 278.7)

  • #5E88B0

    #5E88B0

    oklch(61.2% 0.077 248)

  • #9177A7

    #9177A7

    oklch(61.1% 0.077 308.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #797FB2

    #797FB2

    oklch(61.2% 0.078 278.7)

  • #A27B4F

    #A27B4F

    oklch(61.1% 0.077 68.9)

  • #758D5A

    #758D5A

    oklch(61.1% 0.078 129)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797FB2

    #797FB2

    oklch(61.2% 0.078 278.7)

  • #AC7361

    #AC7361

    oklch(61% 0.078 38.3)

  • #599272

    #599272

    oklch(61.1% 0.078 158.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797FB2

    #797FB2

    oklch(61.2% 0.078 278.7)

  • #AC707A

    #AC707A

    oklch(61.1% 0.077 8.7)

  • #8F844C

    #8F844C

    oklch(61% 0.077 98.5)

  • #45938D

    #45938D

    oklch(61.2% 0.077 188.6)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #797FB2, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #797FB2 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.