#5838F6

Closest named color: Purpley Blue (#5F34E7). oklch(51.5% 0.261 279.7), rgb(88, 56, 246).

Aa

White text reads best on this color (6.34:1).

About this color

#5838F6 is a medium-dark, vivid blue. In OKLCH its lightness is 52%, its chroma 0.261 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Purpley Blue (#5F34E7), ΔE 0.027 away. White text reads best on it, at 6.34:1.

Hue familyBlues
Lightnessmedium-dark (52%)
Chromavivid (0.261)
Temperaturecool
Nearest namePurpley Blue (#5F34E7)
Black text3.31:1
White text6.34:1

Values

HEX#5838F6
RGBrgb(88, 56, 246)
HSLhsl(250, 91%, 59%)
OKLCHoklch(51.5% 0.261 279.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 #5838F6 6.34:1 AA Lc -85.5 Fine for body text
Black text on #5838F6 3.31:1 AA large text Lc 23.7 Dividers and decoration only
#5838F6 text on white 6.34:1 AA Lc 80.3 Fine for body text
#5838F6 text on black 3.31:1 AA large text Lc -21.5 Dividers and decoration only

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 700.

  1. Step 50

    50

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E8FF

    oklch(93.6% 0.031 279.9)

  3. Step 200

    200

    #D1D6FF

    oklch(88.5% 0.057 279.7)

  4. Step 300

    300

    #B3BAFF

    oklch(80.8% 0.098 279.5)

  5. Step 400

    400

    #8E93FF

    oklch(70.6% 0.156 279.6)

  6. Step 500

    500

    #7673FF

    oklch(63.1% 0.202 279.9)

  7. Step 600

    600

    #614CFF

    oklch(55.5% 0.251 279.7)

  8. Step 700

    700 (this color)

    #5838F6

    oklch(51.5% 0.261 279.7)

  9. Step 800

    800

    #4329BF

    oklch(42.6% 0.216 280)

  10. Step 900

    900

    #362A97

    oklch(37.7% 0.169 279.5)

  11. Step 950

    950

    #1F1B58

    oklch(27% 0.106 279.5)

Export this scale for Tailwind in the Tailwind colors tool

#5838F6 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)#0066FB0.097
Deuteranopia (no green cones)#0058F30.081
Tritanopia (no blue cones)#0071970.209
Achromatopsia (no color)#5F5F5F0.263

Harmonies

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

Complementary

The opposite hue (180°).

  • #5838F6

    #5838F6

    oklch(51.5% 0.261 279.7)

  • #776800

    #776800

    oklch(51.6% 0.107 99.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5838F6

    #5838F6

    oklch(51.5% 0.261 279.7)

  • #006AB6

    #006AB6

    oklch(51.5% 0.144 249.6)

  • #9401D3

    #9401D3

    oklch(51.5% 0.26 309.8)

Open the analogous palette in the generator

Split complementary

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

  • #5838F6

    #5838F6

    oklch(51.5% 0.261 279.7)

  • #905A00

    #905A00

    oklch(51.6% 0.112 69.7)

  • #4D7600

    #4D7600

    oklch(51.6% 0.138 129.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5838F6

    #5838F6

    oklch(51.5% 0.261 279.7)

  • #B03B00

    #B03B00

    oklch(51.5% 0.162 39.9)

  • #007B4F

    #007B4F

    oklch(51.4% 0.117 159.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5838F6

    #5838F6

    oklch(51.5% 0.261 279.7)

  • #C0004D

    #C0004D

    oklch(51.6% 0.207 9.6)

  • #776800

    #776800

    oklch(51.6% 0.107 99.3)

  • #007873

    #007873

    oklch(51.7% 0.089 189.7)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #5838F6.

Similar named colors

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

Use #5838F6 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.