#7A258E#7A258E

#7A258E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.174 H 319.2°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7A258E
RGBrgb(122, 37, 142)
HSLhsl(289, 59%, 35%)
HSVhsv(289, 74%, 56%)
CMYKcmyk(14.1%, 73.9%, 0%, 44.3%)
CIE-LABlab(32.73, 51.27, -40.54)
CIE-LCHlch(32.73, 65.36, 321.67°)
OKLaboklab(44.27% 0.1318 -0.1137)
OKLCHoklch(44.27% 0.174 319.2)
XYZxyz(13.5695, 7.4144, 26.3023)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A258E #398E25
analogous
#45258E #7A258E #8E256E
triadic
#7A258E #8E7A25 #258E7A
tetradic
#7A258E #8E4525 #398E25 #256E8E
square
#7A258E #8E4525 #398E25 #256E8E
split-complementary
#7A258E #6E8E25 #258E45
monochromatic
#270C2D #50185D #7A258E #A432BF #BD5AD4

Accessibility & contrast

On white

8.46
#7A258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A258E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A258E#FFFFFF#000000##FFFFFF
##7A258E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#7A3A57
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a258e;
/* rgb */ color: rgb(122, 37, 142);
/* oklch */ color: oklch(44.3% 0.174 319.2);
Tailwind
colors: {
  custom: {
    50: '#a468b0',
    500: '#7a258e',
    950: '#000000',
  },
}
SCSS
$custom: #7a258e;
$custom-light: #a468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a258e",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 288.571,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44266,
    "c": 0.17407,
    "h": 319.2
  },
  "luminance": 0.07414
}

Semantic roles & 50–950 ramp

primary
#7A258E
secondary
#69B956
accent
#E24664
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A258E

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

Preview Lab → · Contrast checker → · Palette generator →

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