#7A238E#7A238E

#7A238E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.176 H 319.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7A238E
RGBrgb(122, 35, 142)
HSLhsl(289, 60%, 35%)
HSVhsv(289, 75%, 56%)
CMYKcmyk(14.1%, 75.4%, 0%, 44.3%)
CIE-LABlab(32.47, 52.03, -40.97)
CIE-LCHlch(32.47, 66.22, 321.79°)
OKLaboklab(44.08% 0.1338 -0.1149)
OKLCHoklch(44.08% 0.176 319.3)
XYZxyz(13.5089, 7.2933, 26.2821)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A238E #378E23
analogous
#45238E #7A238E #8E236D
triadic
#7A238E #8E7A23 #238E7A
tetradic
#7A238E #8E4523 #378E23 #236D8E
square
#7A238E #8E4523 #378E23 #236D8E
split-complementary
#7A238E #6D8E23 #238E45
monochromatic
#260B2C #50175D #7A238E #A42FBF #BE56D5

Accessibility & contrast

On white

8.54
#7A238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A238E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A238E#FFFFFF#000000##FFFFFF
##7A238E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2B4F8C
Tritanopia (blue-blind)
#7A3957
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a238e;
/* rgb */ color: rgb(122, 35, 142);
/* oklch */ color: oklch(44.1% 0.176 319.3);
Tailwind
colors: {
  custom: {
    50: '#a467b0',
    500: '#7a238e',
    950: '#000000',
  },
}
SCSS
$custom: #7a238e;
$custom-light: #a467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a238e",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 288.785,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.1764,
    "h": 319.3
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#7A238E
secondary
#66B953
accent
#E44462
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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