#7A238F#7A238F

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

Color values

HEX#7A238F
RGBrgb(122, 35, 143)
HSLhsl(288, 61%, 35%)
HSVhsv(288, 76%, 56%)
CMYKcmyk(14.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(32.53, 52.23, -41.47)
CIE-LCHlch(32.53, 66.69, 321.55°)
OKLaboklab(44.15% 0.1337 -0.1164)
OKLCHoklch(44.15% 0.177 319)
XYZxyz(13.5843, 7.3235, 26.6793)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A238F #388F23
analogous
#44238F #7A238F #8F236E
triadic
#7A238F #8F7A23 #238F7A
tetradic
#7A238F #8F4423 #388F23 #236E8F
square
#7A238F #8F4423 #388F23 #236E8F
split-complementary
#7A238F #6E8F23 #238F44
monochromatic
#260B2D #50175E #7A238F #A42FC0 #BD57D6

Accessibility & contrast

On white

8.52
#7A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A238F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A238F#FFFFFF#000000##FFFFFF
##7A238F1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a238f;
/* rgb */ color: rgb(122, 35, 143);
/* oklch */ color: oklch(44.1% 0.177 319.0);
Tailwind
colors: {
  custom: {
    50: '#a467b0',
    500: '#7a238f',
    950: '#000000',
  },
}
SCSS
$custom: #7a238f;
$custom-light: #a467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a238f",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 288.333,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44145,
    "c": 0.1773,
    "h": 319
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#7A238F
secondary
#68BA54
accent
#E44463
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A238F

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

Preview Lab → · Contrast checker → · Palette generator →

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