#7F257D#7F257D

#7F257D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.162 H 328.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7F257D
RGBrgb(127, 37, 125)
HSLhsl(301, 55%, 32%)
HSVhsv(301, 71%, 50%)
CMYKcmyk(0%, 70.9%, 1.6%, 50.2%)
CIE-LABlab(32.52, 49.25, -30.26)
CIE-LCHlch(32.52, 57.80, 328.43°)
OKLaboklab(43.94% 0.1383 -0.0836)
OKLCHoklch(43.94% 0.162 328.8)
XYZxyz(13.1155, 7.3168, 20.1195)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F257D #257F27
analogous
#54257F #7F257D #7F2550
triadic
#7F257D #7D7F25 #257D7F
tetradic
#7F257D #7F5425 #257F27 #25507F
square
#7F257D #7F5425 #257F27 #25507F
split-complementary
#7F257D #507F25 #257F54
monochromatic
#200920 #50174E #7F257D #AE33AC #CD52CA

Accessibility & contrast

On white

8.53
#7F257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F257D
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F257D#FFFFFF#000000##FFFFFF
##7F257D1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19457F
Deuteranopia (green-blind)
#3D517B
Tritanopia (blue-blind)
#83314E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f257d;
/* rgb */ color: rgb(127, 37, 125);
/* oklch */ color: oklch(43.9% 0.162 328.8);
Tailwind
colors: {
  custom: {
    50: '#a768a3',
    500: '#7f257d',
    950: '#000000',
  },
}
SCSS
$custom: #7f257d;
$custom-light: #a768a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f257d",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 301.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.16157,
    "h": 328.8
  },
  "luminance": 0.07316
}

Semantic roles & 50–950 ramp

primary
#7F257D
secondary
#4FB151
accent
#DE4D4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F257D

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

Preview Lab → · Contrast checker → · Palette generator →

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