#7E38AB

Closest named color: Purply (#983FB2). oklch(48.9% 0.18 309.2), rgb(126, 56, 171).

Aa

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

About this color

#7E38AB is a medium-dark, vivid purple. In OKLCH its lightness is 49%, its chroma 0.180 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.055 away. White text reads best on it, at 6.90:1.

Hue familyPurples
Lightnessmedium-dark (49%)
Chromavivid (0.180)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.04:1
White text6.90:1

Values

HEX#7E38AB
RGBrgb(126, 56, 171)
HSLhsl(277, 51%, 45%)
OKLCHoklch(48.9% 0.18 309.2)

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 #7E38AB 6.90:1 AA Lc -88.2 Fine for body text
Black text on #7E38AB 3.04:1 AA large text Lc 20.8 Dividers and decoration only
#7E38AB text on white 6.90:1 AA Lc 83.2 Fine for body text
#7E38AB text on black 3.04:1 AA large text Lc -18.7 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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE6F7

    oklch(93.7% 0.025 309.4)

  3. Step 200

    200

    #E3D1F2

    oklch(88.5% 0.049 309.7)

  4. Step 300

    300

    #D1B2EC

    oklch(81% 0.087 308.8)

  5. Step 400

    400

    #BA87E2

    oklch(70.8% 0.139 309)

  6. Step 500

    500

    #A965D9

    oklch(63.1% 0.178 309.3)

  7. Step 600

    600

    #9448C7

    oklch(55.5% 0.194 309)

  8. Step 700

    700 (this color)

    #7E38AB

    oklch(48.9% 0.18 309.2)

  9. Step 800

    800

    #67308B

    oklch(42.7% 0.149 309.3)

  10. Step 900

    900

    #542C6F

    oklch(37.8% 0.116 309.5)

  11. Step 950

    950

    #311A41

    oklch(26.9% 0.074 309.5)

Export this scale for Tailwind in the Tailwind colors tool

#7E38AB 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)#0057AE0.155
Deuteranopia (no green cones)#245BA80.143
Tritanopia (no blue cones)#77506D0.124
Achromatopsia (no color)#5A5A5A0.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #7E38AB

    #7E38AB

    oklch(48.9% 0.18 309.2)

  • #486D00

    #486D00

    oklch(48.8% 0.13 129.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7E38AB

    #7E38AB

    oklch(48.9% 0.18 309.2)

  • #504BC2

    #504BC2

    oklch(48.9% 0.18 279.3)

  • #9C2681

    #9C2681

    oklch(48.9% 0.18 338.9)

Open the analogous palette in the generator

Split complementary

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

  • #7E38AB

    #7E38AB

    oklch(48.9% 0.18 309.2)

  • #6F6000

    #6F6000

    oklch(48.9% 0.101 98.6)

  • #007348

    #007348

    oklch(49% 0.113 158.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7E38AB

    #7E38AB

    oklch(48.9% 0.18 309.2)

  • #865300

    #865300

    oklch(48.9% 0.106 69.3)

  • #006F6A

    #006F6A

    oklch(48.9% 0.085 189.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7E38AB

    #7E38AB

    oklch(48.9% 0.18 309.2)

  • #A53500

    #A53500

    oklch(48.9% 0.156 39.2)

  • #486D00

    #486D00

    oklch(48.8% 0.13 129.1)

  • #006B82

    #006B82

    oklch(48.8% 0.089 219.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7E38AB 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.