#7C258E#7C258E

#7C258E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.175 H 320.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7C258E
RGBrgb(124, 37, 142)
HSLhsl(290, 59%, 35%)
HSVhsv(290, 74%, 56%)
CMYKcmyk(12.7%, 73.9%, 0%, 44.3%)
CIE-LABlab(33.05, 51.71, -40.01)
CIE-LCHlch(33.05, 65.38, 322.27°)
OKLaboklab(44.56% 0.1343 -0.1121)
OKLCHoklch(44.56% 0.175 320.2)
XYZxyz(13.8556, 7.5619, 26.3157)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C258E #378E25
analogous
#47258E #7C258E #8E256C
triadic
#7C258E #8E7C25 #258E7C
tetradic
#7C258E #8E4725 #378E25 #256C8E
square
#7C258E #8E4725 #378E25 #256C8E
split-complementary
#7C258E #6C8E25 #258E47
monochromatic
#270C2D #52185D #7C258E #A632BF #BF5AD4

Accessibility & contrast

On white

8.36
#7C258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7C258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C258E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C258E#FFFFFF#000000##FFFFFF
##7C258E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7C3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c258e;
/* rgb */ color: rgb(124, 37, 142);
/* oklch */ color: oklch(44.6% 0.175 320.2);
Tailwind
colors: {
  custom: {
    50: '#a569b0',
    500: '#7c258e',
    950: '#000000',
  },
}
SCSS
$custom: #7c258e;
$custom-light: #a569b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c258e",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 289.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44559,
    "c": 0.17493,
    "h": 320.2
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#7C258E
secondary
#67B956
accent
#E24661
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C258E

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

Preview Lab → · Contrast checker → · Palette generator →

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