#45187C#45187C

#45187C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.155 H 297.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#45187C
RGBrgb(69, 24, 124)
HSLhsl(267, 68%, 29%)
HSVhsv(267, 81%, 49%)
CMYKcmyk(44.4%, 80.6%, 0%, 51.4%)
CIE-LABlab(21.48, 42.05, -47.87)
CIE-LCHlch(21.48, 63.72, 311.29°)
OKLaboklab(34.23% 0.0725 -0.137)
OKLCHoklch(34.23% 0.155 297.9)
XYZxyz(6.4180, 3.3736, 19.3779)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45187C #4F7C18
analogous
#181D7C #45187C #77187C
triadic
#45187C #7C4518 #187C45
tetradic
#45187C #7C181D #4F7C18 #187C77
square
#45187C #7C181D #4F7C18 #187C77
split-complementary
#45187C #7C7718 #1D7C18
monochromatic
#0E051A #280E49 #45187C #6222AF #7F36D8

Accessibility & contrast

On white

12.54
#45187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45187C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45187C#FFFFFF#000000##FFFFFF
##45187C1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#37334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45187c;
/* rgb */ color: rgb(69, 24, 124);
/* oklch */ color: oklch(34.2% 0.155 297.9);
Tailwind
colors: {
  custom: {
    50: '#7f5ba3',
    500: '#45187c',
    950: '#000000',
  },
}
SCSS
$custom: #45187c;
$custom-light: #7f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#45187c",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 267,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.15505,
    "h": 297.9
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#45187C
secondary
#7EB13F
accent
#EA3D9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45187C

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

Preview Lab → · Contrast checker → · Palette generator →

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