#7F258C#7F258C

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

Color values

HEX#7F258C
RGBrgb(127, 37, 140)
HSLhsl(292, 58%, 35%)
HSVhsv(292, 74%, 55%)
CMYKcmyk(9.3%, 73.6%, 0%, 45.1%)
CIE-LABlab(33.41, 51.99, -38.17)
CIE-LCHlch(33.41, 64.50, 323.72°)
OKLaboklab(44.87% 0.1381 -0.1066)
OKLCHoklch(44.87% 0.174 322.3)
XYZxyz(14.1471, 7.7294, 25.5526)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F258C #328C25
analogous
#4B258C #7F258C #8C2566
triadic
#7F258C #8C7F25 #258C7F
tetradic
#7F258C #8C4B25 #328C25 #25668C
square
#7F258C #8C4B25 #328C25 #25668C
split-complementary
#7F258C #668C25 #258C4B
monochromatic
#270B2B #53185C #7F258C #AB32BC #C458D3

Accessibility & contrast

On white

8.25
#7F258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F258C
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F258C#FFFFFF#000000##FFFFFF
##7F258C1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#813856
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f258c;
/* rgb */ color: rgb(127, 37, 140);
/* oklch */ color: oklch(44.9% 0.174 322.3);
Tailwind
colors: {
  custom: {
    50: '#a769ae',
    500: '#7f258c',
    950: '#000000',
  },
}
SCSS
$custom: #7f258c;
$custom-light: #a769ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f258c",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 292.427,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.17448,
    "h": 322.3
  },
  "luminance": 0.07729
}

Semantic roles & 50–950 ramp

primary
#7F258C
secondary
#62B855
accent
#E1465A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F258C

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

Preview Lab → · Contrast checker → · Palette generator →

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