#45278D#45278D

#45278D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.158 H 290.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#45278D
RGBrgb(69, 39, 141)
HSLhsl(258, 57%, 35%)
HSVhsv(258, 72%, 55%)
CMYKcmyk(51.1%, 72.3%, 0%, 44.7%)
CIE-LABlab(25.68, 39.34, -51.69)
CIE-LCHlch(25.68, 64.95, 307.27°)
OKLaboklab(37.66% 0.0545 -0.1483)
OKLCHoklch(37.66% 0.158 290.2)
XYZxyz(7.9861, 4.6390, 25.6688)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45278D #6F8D27
analogous
#273C8D #45278D #78278D
triadic
#45278D #8D4527 #278D45
tetradic
#45278D #8D273C #6F8D27 #278D78
square
#45278D #8D273C #6F8D27 #278D78
split-complementary
#45278D #8D7827 #3C8D27
monochromatic
#160C2D #2E1A5D #45278D #5C34BD #7F5CD2

Accessibility & contrast

On white

10.89
#45278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#45278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45278D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45278D#FFFFFF#000000##FFFFFF
##45278D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#2C4157
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #45278d;
/* rgb */ color: rgb(69, 39, 141);
/* oklch */ color: oklch(37.7% 0.158 290.2);
Tailwind
colors: {
  custom: {
    50: '#8064af',
    500: '#45278d',
    950: '#000000',
  },
}
SCSS
$custom: #45278d;
$custom-light: #8064af;
$custom-dark: #000000;
JSON
{
  "hex": "#45278d",
  "rgb": {
    "r": 69,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 257.647,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37664,
    "c": 0.15802,
    "h": 290.2
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#45278D
secondary
#9BB759
accent
#E048B3
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #45278D

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

Preview Lab → · Contrast checker → · Palette generator →

#45278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva