#7F237E#7F237E

#7F237E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.165 H 328.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7F237E
RGBrgb(127, 35, 126)
HSLhsl(301, 57%, 32%)
HSVhsv(301, 72%, 50%)
CMYKcmyk(0%, 72.4%, 0.8%, 50.2%)
CIE-LABlab(32.31, 50.19, -31.23)
CIE-LCHlch(32.31, 59.11, 328.11°)
OKLaboklab(43.81% 0.1405 -0.0864)
OKLCHoklch(43.81% 0.165 328.4)
XYZxyz(13.1192, 7.2214, 20.4375)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237E #237F24
analogous
#52237F #7F237E #7F2350
triadic
#7F237E #7E7F23 #237E7F
tetradic
#7F237E #7F5223 #237F24 #23507F
square
#7F237E #7F5223 #237F24 #23507F
split-complementary
#7F237E #507F23 #237F52
monochromatic
#1F091F #4F164E #7F237E #AF30AE #CE4ECD

Accessibility & contrast

On white

8.59
#7F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237E
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237E#FFFFFF#000000##FFFFFF
##7F237E1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#3C507C
Tritanopia (blue-blind)
#83304E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f237e;
/* rgb */ color: rgb(127, 35, 126);
/* oklch */ color: oklch(43.8% 0.165 328.4);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7f237e',
    950: '#000000',
  },
}
SCSS
$custom: #7f237e;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237e",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 300.652,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43807,
    "c": 0.16489,
    "h": 328.4
  },
  "luminance": 0.0722
}

Semantic roles & 50–950 ramp

primary
#7F237E
secondary
#4CB14E
accent
#E04948
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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