#7F237F#7F237F

#7F237F is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.166 H 328.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7F237F
RGBrgb(127, 35, 127)
HSLhsl(300, 57%, 32%)
HSVhsv(300, 72%, 50%)
CMYKcmyk(0%, 72.4%, 0%, 50.2%)
CIE-LABlab(32.36, 50.36, -31.76)
CIE-LCHlch(32.36, 59.54, 327.76°)
OKLaboklab(43.87% 0.1405 -0.0879)
OKLCHoklch(43.87% 0.166 328)
XYZxyz(13.1840, 7.2473, 20.7790)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237F #237F23
analogous
#51237F #7F237F #7F2351
triadic
#7F237F #7F7F23 #237F7F
tetradic
#7F237F #7F5123 #237F23 #23517F
square
#7F237F #7F5123 #237F23 #23517F
split-complementary
#7F237F #517F23 #237F51
monochromatic
#1F091F #4F164F #7F237F #AF30AF #CE4ECE

Accessibility & contrast

On white

8.57
#7F237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237F#FFFFFF#000000##FFFFFF
##7F237F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134482
Deuteranopia (green-blind)
#3B507D
Tritanopia (blue-blind)
#83314E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f237f;
/* rgb */ color: rgb(127, 35, 127);
/* oklch */ color: oklch(43.9% 0.166 328.0);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7f237f',
    950: '#000000',
  },
}
SCSS
$custom: #7f237f;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237f",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43867,
    "c": 0.16573,
    "h": 328
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#7F237F
secondary
#4CB14C
accent
#E04848
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F237F

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

Preview Lab → · Contrast checker → · Palette generator →

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