#7F237C#7F237C

#7F237C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.163 H 329.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7F237C
RGBrgb(127, 35, 124)
HSLhsl(302, 57%, 32%)
HSVhsv(302, 72%, 50%)
CMYKcmyk(0%, 72.4%, 2.4%, 50.2%)
CIE-LABlab(32.19, 49.84, -30.15)
CIE-LCHlch(32.19, 58.25, 328.82°)
OKLaboklab(43.69% 0.1404 -0.0833)
OKLCHoklch(43.69% 0.163 329.3)
XYZxyz(12.9914, 7.1703, 19.7646)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237C #237F26
analogous
#54237F #7F237C #7F234E
triadic
#7F237C #7C7F23 #237C7F
tetradic
#7F237C #7F5423 #237F26 #234E7F
square
#7F237C #7F5423 #237F26 #234E7F
split-complementary
#7F237C #4E7F23 #237F54
monochromatic
#1F091E #4F164D #7F237C #AF30AB #CE4ECA

Accessibility & contrast

On white

8.63
#7F237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237C
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237C#FFFFFF#000000##FFFFFF
##7F237C1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447E
Deuteranopia (green-blind)
#3D507A
Tritanopia (blue-blind)
#842F4D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f237c;
/* rgb */ color: rgb(127, 35, 124);
/* oklch */ color: oklch(43.7% 0.163 329.3);
Tailwind
colors: {
  custom: {
    50: '#a767a2',
    500: '#7f237c',
    950: '#000000',
  },
}
SCSS
$custom: #7f237c;
$custom-light: #a767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237c",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 301.957,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43688,
    "c": 0.16324,
    "h": 329.3
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

primary
#7F237C
secondary
#4CB150
accent
#E04D48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F237C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7F237C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva