#45187F#45187F

#45187F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.158 H 296.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#45187F
RGBrgb(69, 24, 127)
HSLhsl(266, 68%, 30%)
HSVhsv(266, 81%, 50%)
CMYKcmyk(45.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(21.77, 42.84, -49.32)
CIE-LCHlch(21.77, 65.33, 310.98°)
OKLaboklab(34.51% 0.0716 -0.1413)
OKLCHoklch(34.51% 0.158 296.9)
XYZxyz(6.6106, 3.4506, 20.3923)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45187F #527F18
analogous
#181E7F #45187F #79187F
triadic
#45187F #7F4518 #187F45
tetradic
#45187F #7F181E #527F18 #187F79
square
#45187F #7F181E #527F18 #187F79
split-complementary
#45187F #7F7918 #1E7F18
monochromatic
#0E051A #290E4C #45187F #6122B2 #7F38D9

Accessibility & contrast

On white

12.42
#45187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#45187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45187F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45187F#FFFFFF#000000##FFFFFF
##45187F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#35354B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45187f;
/* rgb */ color: rgb(69, 24, 127);
/* oklch */ color: oklch(34.5% 0.158 296.9);
Tailwind
colors: {
  custom: {
    50: '#7f5ba5',
    500: '#45187f',
    950: '#000000',
  },
}
SCSS
$custom: #45187f;
$custom-light: #7f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#45187f",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 266.214,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.15838,
    "h": 296.9
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#45187F
secondary
#81B33F
accent
#EB3D9F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45187F

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

Preview Lab → · Contrast checker → · Palette generator →

#45187F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva