#7F238F#7F238F

#7F238F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.179 H 321.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7F238F
RGBrgb(127, 35, 143)
HSLhsl(291, 61%, 35%)
HSVhsv(291, 76%, 56%)
CMYKcmyk(11.2%, 75.5%, 0%, 43.9%)
CIE-LABlab(33.35, 53.30, -40.13)
CIE-LCHlch(33.35, 66.72, 323.03°)
OKLaboklab(44.89% 0.1399 -0.1123)
OKLCHoklch(44.89% 0.179 321.2)
XYZxyz(14.3108, 7.6980, 26.7134)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238F #338F23
analogous
#49238F #7F238F #8F2369
triadic
#7F238F #8F7F23 #238F7F
tetradic
#7F238F #8F4923 #338F23 #23698F
square
#7F238F #8F4923 #338F23 #23698F
split-complementary
#7F238F #698F23 #238F49
monochromatic
#280B2D #53175E #7F238F #AB2FC0 #C357D6

Accessibility & contrast

On white

8.27
#7F238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F238F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238F#FFFFFF#000000##FFFFFF
##7F238F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#30528D
Tritanopia (blue-blind)
#803857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f238f;
/* rgb */ color: rgb(127, 35, 143);
/* oklch */ color: oklch(44.9% 0.179 321.2);
Tailwind
colors: {
  custom: {
    50: '#a868b0',
    500: '#7f238f',
    950: '#000000',
  },
}
SCSS
$custom: #7f238f;
$custom-light: #a868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238f",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 291.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44885,
    "c": 0.17941,
    "h": 321.2
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#7F238F
secondary
#63BA54
accent
#E4445C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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