#7A237B#7A237B

#7A237B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.160 H 327.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7A237B
RGBrgb(122, 35, 123)
HSLhsl(299, 56%, 31%)
HSVhsv(299, 72%, 48%)
CMYKcmyk(0.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(31.28, 48.45, -31.02)
CIE-LCHlch(31.28, 57.53, 327.36°)
OKLaboklab(42.85% 0.1346 -0.0859)
OKLCHoklch(42.85% 0.16 327.4)
XYZxyz(12.2020, 6.7705, 19.3992)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237B #247B23
analogous
#4E237B #7A237B #7B2350
triadic
#7A237B #7B7A23 #237B7A
tetradic
#7A237B #7B4E23 #247B23 #23507B
square
#7A237B #7B4E23 #247B23 #23507B
split-complementary
#7A237B #507B23 #237B4E
monochromatic
#1B081C #4B154B #7A237B #A931AB #CB4CCC

Accessibility & contrast

On white

8.92
#7A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A237B
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237B#FFFFFF#000000##FFFFFF
##7A237B1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#394E79
Tritanopia (blue-blind)
#7E304C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a237b;
/* rgb */ color: rgb(122, 35, 123);
/* oklch */ color: oklch(42.8% 0.160 327.4);
Tailwind
colors: {
  custom: {
    50: '#a367a1',
    500: '#7a237b',
    950: '#000000',
  },
}
SCSS
$custom: #7a237b;
$custom-light: #a367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237b",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 299.318,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42847,
    "c": 0.1597,
    "h": 327.4
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#7A237B
secondary
#4DAE4C
accent
#DF494B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #7A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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