#45187A#45187A

#45187A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.153 H 298.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#45187A
RGBrgb(69, 24, 122)
HSLhsl(268, 67%, 29%)
HSVhsv(268, 80%, 48%)
CMYKcmyk(43.4%, 80.3%, 0%, 52.2%)
CIE-LABlab(21.30, 41.52, -46.90)
CIE-LCHlch(21.30, 62.64, 311.51°)
OKLaboklab(34.04% 0.0731 -0.1342)
OKLCHoklch(34.04% 0.153 298.6)
XYZxyz(6.2928, 3.3235, 18.7185)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45187A #4D7A18
analogous
#181C7A #45187A #76187A
triadic
#45187A #7A4518 #187A45
tetradic
#45187A #7A181C #4D7A18 #187A76
square
#45187A #7A181C #4D7A18 #187A76
split-complementary
#45187A #7A7618 #1C7A18
monochromatic
#0E051A #280E47 #45187A #6222AD #8035D7

Accessibility & contrast

On white

12.61
#45187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45187A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45187A#FFFFFF#000000##FFFFFF
##45187A1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#383349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45187a;
/* rgb */ color: rgb(69, 24, 122);
/* oklch */ color: oklch(34.0% 0.153 298.6);
Tailwind
colors: {
  custom: {
    50: '#7f5ba1',
    500: '#45187a',
    950: '#000000',
  },
}
SCSS
$custom: #45187a;
$custom-light: #7f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#45187a",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 267.551,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34037,
    "c": 0.15284,
    "h": 298.6
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#45187A
secondary
#7BAF3F
accent
#EA3E9B
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45187A

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

Preview Lab → · Contrast checker → · Palette generator →

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