#7B40B3

Closest named color: Purply (#983FB2). oklch(50.2% 0.177 304.3), rgb(123, 64, 179).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (50%)
Chromavivid (0.177)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.22:1
White text6.50:1

Values

HEX#7B40B3
RGBrgb(123, 64, 179)
HSLhsl(271, 47%, 48%)
OKLCHoklch(50.2% 0.177 304.3)

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 #7B40B3 6.50:1 AA Lc -86.8 Fine for body text
Black text on #7B40B3 3.22:1 AA large text Lc 22.3 Dividers and decoration only
#7B40B3 text on white 6.50:1 AA Lc 81.7 Fine for body text
#7B40B3 text on black 3.22:1 AA large text Lc -20.2 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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EDE6F8

    oklch(93.6% 0.025 303.5)

  3. Step 200

    200

    #E0D2F3

    oklch(88.5% 0.047 304.6)

  4. Step 300

    300

    #CDB3EE

    oklch(80.9% 0.086 304.6)

  5. Step 400

    400

    #B489E5

    oklch(70.7% 0.137 304.7)

  6. Step 500

    500

    #A269DD

    oklch(63.2% 0.174 304.6)

  7. Step 600

    600

    #8D4DCB

    oklch(55.6% 0.19 304.3)

  8. Step 700

    700 (this color)

    #7B40B3

    oklch(50.2% 0.177 304.3)

  9. Step 800

    800

    #61338E

    oklch(42.6% 0.146 304.1)

  10. Step 900

    900

    #4F2E71

    oklch(37.6% 0.113 304.2)

  11. Step 950

    950

    #2E1C42

    oklch(27% 0.071 303.9)

Export this scale for Tailwind in the Tailwind colors tool

#7B40B3 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)#005CB70.142
Deuteranopia (no green cones)#205EB00.133
Tritanopia (no blue cones)#7158740.127
Achromatopsia (no color)#5E5E5E0.178

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B40B3

    #7B40B3

    oklch(50.2% 0.177 304.3)

  • #556F00

    #556F00

    oklch(50.2% 0.125 124.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B40B3

    #7B40B3

    oklch(50.2% 0.177 304.3)

  • #4953C6

    #4953C6

    oklch(50.1% 0.177 274.3)

  • #9B2F8C

    #9B2F8C

    oklch(50.1% 0.177 334)

Open the analogous palette in the generator

Split complementary

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

  • #7B40B3

    #7B40B3

    oklch(50.2% 0.177 304.3)

  • #776200

    #776200

    oklch(50.2% 0.103 94.3)

  • #007841

    #007841

    oklch(50.3% 0.126 154.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B40B3

    #7B40B3

    oklch(50.2% 0.177 304.3)

  • #8F5300

    #8F5300

    oklch(50.1% 0.113 64.2)

  • #00746A

    #00746A

    oklch(50.2% 0.089 184.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B40B3

    #7B40B3

    oklch(50.2% 0.177 304.3)

  • #B22B03

    #B22B03

    oklch(50.2% 0.177 34.5)

  • #556F00

    #556F00

    oklch(50.2% 0.125 124.2)

  • #007083

    #007083

    oklch(50.2% 0.089 214.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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