#45288E#45288E

#45288E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.158 H 289.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#45288E
RGBrgb(69, 40, 142)
HSLhsl(257, 56%, 36%)
HSVhsv(257, 72%, 56%)
CMYKcmyk(51.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.97, 39.09, -51.84)
CIE-LCHlch(25.97, 64.92, 307.02°)
OKLaboklab(37.9% 0.0533 -0.1488)
OKLCHoklch(37.9% 0.158 289.7)
XYZxyz(8.0941, 4.7354, 26.0735)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45288E #718E28
analogous
#283E8E #45288E #78288E
triadic
#45288E #8E4528 #288E45
tetradic
#45288E #8E283E #718E28 #288E78
square
#45288E #8E283E #718E28 #288E78
split-complementary
#45288E #8E7828 #3E8E28
monochromatic
#170D2F #2E1B5E #45288E #5C35BE #7F5FD2

Accessibility & contrast

On white

10.78
#45288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#45288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45288E
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45288E#FFFFFF#000000##FFFFFF
##45288E1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#2C4258
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #45288e;
/* rgb */ color: rgb(69, 40, 142);
/* oklch */ color: oklch(37.9% 0.158 289.7);
Tailwind
colors: {
  custom: {
    50: '#8064b0',
    500: '#45288e',
    950: '#000000',
  },
}
SCSS
$custom: #45288e;
$custom-light: #8064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45288e",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 257.059,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37895,
    "c": 0.15805,
    "h": 289.7
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#45288E
secondary
#9DB75B
accent
#DF48B4
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #45288E

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

Preview Lab → · Contrast checker → · Palette generator →

#45288E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva