#45278E#45278E

#45278E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.159 H 289.9°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#45278E
RGBrgb(69, 39, 142)
HSLhsl(257, 57%, 35%)
HSVhsv(257, 73%, 56%)
CMYKcmyk(51.4%, 72.5%, 0%, 44.3%)
CIE-LABlab(25.77, 39.63, -52.16)
CIE-LCHlch(25.77, 65.51, 307.23°)
OKLaboklab(37.76% 0.0543 -0.1497)
OKLCHoklch(37.76% 0.159 289.9)
XYZxyz(8.0608, 4.6689, 26.0624)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45278E #708E27
analogous
#273C8E #45278E #78278E
triadic
#45278E #8E4527 #278E45
tetradic
#45278E #8E273C #708E27 #278E78
square
#45278E #8E273C #708E27 #278E78
split-complementary
#45278E #8E7827 #3C8E27
monochromatic
#160D2E #2E1A5E #45278E #5C34BE #7F5DD2

Accessibility & contrast

On white

10.86
#45278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45278E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45278E#FFFFFF#000000##FFFFFF
##45278E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.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: #45278e;
/* rgb */ color: rgb(69, 39, 142);
/* oklch */ color: oklch(37.8% 0.159 289.9);
Tailwind
colors: {
  custom: {
    50: '#8064b0',
    500: '#45278e',
    950: '#000000',
  },
}
SCSS
$custom: #45278e;
$custom-light: #8064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45278e",
  "rgb": {
    "r": 69,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 257.476,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37755,
    "c": 0.15927,
    "h": 289.9
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#45278E
secondary
#9CB859
accent
#E048B4
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #45278E

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

Preview Lab → · Contrast checker → · Palette generator →

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