#7A238D#7A238D

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

Color values

HEX#7A238D
RGBrgb(122, 35, 141)
HSLhsl(289, 60%, 35%)
HSVhsv(289, 75%, 55%)
CMYKcmyk(13.5%, 75.2%, 0%, 44.7%)
CIE-LABlab(32.40, 51.83, -40.46)
CIE-LCHlch(32.40, 65.75, 322.03°)
OKLaboklab(44.01% 0.1339 -0.1134)
OKLCHoklch(44.01% 0.176 319.7)
XYZxyz(13.4342, 7.2634, 25.8885)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A238D #368D23
analogous
#45238D #7A238D #8D236B
triadic
#7A238D #8D7A23 #238D7A
tetradic
#7A238D #8D4523 #368D23 #236B8D
square
#7A238D #8D4523 #368D23 #236B8D
split-complementary
#7A238D #6B8D23 #238D45
monochromatic
#250B2B #50175C #7A238D #A42FBE #BE55D5

Accessibility & contrast

On white

8.56
#7A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A238D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A238D#FFFFFF#000000##FFFFFF
##7A238D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2C4F8B
Tritanopia (blue-blind)
#7A3856
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a238d;
/* rgb */ color: rgb(122, 35, 141);
/* oklch */ color: oklch(44.0% 0.175 319.7);
Tailwind
colors: {
  custom: {
    50: '#a467af',
    500: '#7a238d',
    950: '#000000',
  },
}
SCSS
$custom: #7a238d;
$custom-light: #a467af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a238d",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 289.245,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44008,
    "c": 0.1755,
    "h": 319.7
  },
  "luminance": 0.07263
}

Semantic roles & 50–950 ramp

primary
#7A238D
secondary
#65B953
accent
#E34461
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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