#7F257E#7F257E

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

Color values

HEX#7F257E
RGBrgb(127, 37, 126)
HSLhsl(301, 55%, 32%)
HSVhsv(301, 71%, 50%)
CMYKcmyk(0%, 70.9%, 0.8%, 50.2%)
CIE-LABlab(32.57, 49.43, -30.80)
CIE-LCHlch(32.57, 58.24, 328.07°)
OKLaboklab(44% 0.1383 -0.0852)
OKLCHoklch(44% 0.162 328.4)
XYZxyz(13.1797, 7.3425, 20.4577)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F257E #257F26
analogous
#53257F #7F257E #7F2551
triadic
#7F257E #7E7F25 #257E7F
tetradic
#7F257E #7F5325 #257F26 #25517F
square
#7F257E #7F5325 #257F26 #25517F
split-complementary
#7F257E #517F25 #257F53
monochromatic
#200920 #50174F #7F257E #AE33AD #CD52CB

Accessibility & contrast

On white

8.51
#7F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F257E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F257E#FFFFFF#000000##FFFFFF
##7F257E1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184581
Deuteranopia (green-blind)
#3D517C
Tritanopia (blue-blind)
#83324F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f257e;
/* rgb */ color: rgb(127, 37, 126);
/* oklch */ color: oklch(44.0% 0.162 328.4);
Tailwind
colors: {
  custom: {
    50: '#a768a4',
    500: '#7f257e',
    950: '#000000',
  },
}
SCSS
$custom: #7f257e;
$custom-light: #a768a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f257e",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 300.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44,
    "c": 0.16241,
    "h": 328.4
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#7F257E
secondary
#4FB150
accent
#DE4B4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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