#7F259C#7F259C

#7F259C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.189 H 316.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7F259C
RGBrgb(127, 37, 156)
HSLhsl(285, 62%, 38%)
HSVhsv(285, 76%, 61%)
CMYKcmyk(18.6%, 76.3%, 0%, 38.8%)
CIE-LABlab(34.47, 55.12, -46.26)
CIE-LCHlch(34.47, 71.96, 319.99°)
OKLaboklab(45.96% 0.1366 -0.1303)
OKLCHoklch(45.96% 0.189 316.3)
XYZxyz(15.4138, 8.2361, 32.2238)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F259C #429C25
analogous
#43259C #7F259C #9C257D
triadic
#7F259C #9C7F25 #259C7F
tetradic
#7F259C #9C4325 #429C25 #257D9C
square
#7F259C #9C4325 #429C25 #257D9C
split-complementary
#7F259C #7D9C25 #259C43
monochromatic
#2E0E39 #57196B #7F259C #A731CD #BC62DA

Accessibility & contrast

On white

7.93
#7F259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F259C
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F259C#FFFFFF#000000##FFFFFF
##7F259C1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#7D3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f259c;
/* rgb */ color: rgb(127, 37, 156);
/* oklch */ color: oklch(46.0% 0.189 316.3);
Tailwind
colors: {
  custom: {
    50: '#a86aba',
    500: '#7f259c',
    950: '#000000',
  },
}
SCSS
$custom: #7f259c;
$custom-light: #a86aba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f259c",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 285.378,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4596,
    "c": 0.18878,
    "h": 316.3
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#7F259C
secondary
#75BF5E
accent
#E5436A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F259C

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

Preview Lab → · Contrast checker → · Palette generator →

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