#45238A#45238A

#45238A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.159 H 291.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#45238A
RGBrgb(69, 35, 138)
HSLhsl(260, 60%, 34%)
HSVhsv(260, 75%, 54%)
CMYKcmyk(50%, 74.6%, 0%, 45.9%)
CIE-LABlab(24.65, 40.60, -51.51)
CIE-LCHlch(24.65, 65.59, 308.24°)
OKLaboklab(36.85% 0.0589 -0.1478)
OKLCHoklch(36.85% 0.159 291.7)
XYZxyz(7.6414, 4.3020, 24.4676)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238A #688A23
analogous
#23358A #45238A #79238A
triadic
#45238A #8A4523 #238A45
tetradic
#45238A #8A2335 #688A23 #238A79
square
#45238A #8A2335 #688A23 #238A79
split-complementary
#45238A #8A7923 #358A23
monochromatic
#140A28 #2D1759 #45238A #5D2FBB #7E54D4

Accessibility & contrast

On white

11.29
#45238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#45238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238A
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238A#FFFFFF#000000##FFFFFF
##45238A1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#2F3E54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45238a;
/* rgb */ color: rgb(69, 35, 138);
/* oklch */ color: oklch(36.8% 0.159 291.7);
Tailwind
colors: {
  custom: {
    50: '#8061ad',
    500: '#45238a',
    950: '#000000',
  },
}
SCSS
$custom: #45238a;
$custom-light: #8061ad;
$custom-dark: #000000;
JSON
{
  "hex": "#45238a",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 259.806,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36846,
    "c": 0.1591,
    "h": 291.7
  },
  "luminance": 0.04302
}

Semantic roles & 50–950 ramp

primary
#45238A
secondary
#96B751
accent
#E345AF
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45238A

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

Preview Lab → · Contrast checker → · Palette generator →

#45238A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva