#7F237A#7F237A

#7F237A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.162 H 330.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7F237A
RGBrgb(127, 35, 122)
HSLhsl(303, 57%, 32%)
HSVhsv(303, 72%, 50%)
CMYKcmyk(0%, 72.4%, 3.9%, 50.2%)
CIE-LABlab(32.08, 49.49, -29.07)
CIE-LCHlch(32.08, 57.40, 329.57°)
OKLaboklab(43.57% 0.1403 -0.0801)
OKLCHoklch(43.57% 0.162 330.3)
XYZxyz(12.8662, 7.1202, 19.1053)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237A #237F28
analogous
#56237F #7F237A #7F234C
triadic
#7F237A #7A7F23 #237A7F
tetradic
#7F237A #7F5623 #237F28 #234C7F
square
#7F237A #7F5623 #237F28 #234C7F
split-complementary
#7F237A #4C7F23 #237F56
monochromatic
#1F091E #4F164C #7F237A #AF30A8 #CE4EC7

Accessibility & contrast

On white

8.66
#7F237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237A#FFFFFF#000000##FFFFFF
##7F237A1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437C
Deuteranopia (green-blind)
#3E5078
Tritanopia (blue-blind)
#842E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f237a;
/* rgb */ color: rgb(127, 35, 122);
/* oklch */ color: oklch(43.6% 0.162 330.3);
Tailwind
colors: {
  custom: {
    50: '#a767a1',
    500: '#7f237a',
    950: '#000000',
  },
}
SCSS
$custom: #7f237a;
$custom-light: #a767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237a",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 303.261,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43571,
    "c": 0.1616,
    "h": 330.3
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#7F237A
secondary
#4CB152
accent
#E05048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F237A

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

Preview Lab → · Contrast checker → · Palette generator →

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