#45186C#45186C

#45186C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.137 H 304.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#45186C
RGBrgb(69, 24, 108)
HSLhsl(272, 64%, 26%)
HSVhsv(272, 78%, 42%)
CMYKcmyk(36.1%, 77.8%, 0%, 57.6%)
CIE-LABlab(20.05, 37.86, -39.92)
CIE-LCHlch(20.05, 55.02, 313.48°)
OKLaboklab(32.78% 0.0768 -0.1137)
OKLCHoklch(32.78% 0.137 304)
XYZxyz(5.4870, 3.0012, 14.4747)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45186C #3F6C18
analogous
#1B186C #45186C #6C1869
triadic
#45186C #6C4518 #186C45
tetradic
#45186C #6C1B18 #3F6C18 #18696C
square
#45186C #6C1B18 #3F6C18 #18696C
split-complementary
#45186C #696C18 #186C1B
monochromatic
#100619 #250D3A #45186C #65239E #852ED0

Accessibility & contrast

On white

13.12
#45186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#45186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45186C
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45186C#FFFFFF#000000##FFFFFF
##45186C1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#3D2D41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45186c;
/* rgb */ color: rgb(69, 24, 108);
/* oklch */ color: oklch(32.8% 0.137 304.0);
Tailwind
colors: {
  custom: {
    50: '#7d5a97',
    500: '#45186c',
    950: '#000000',
  },
}
SCSS
$custom: #45186c;
$custom-light: #7d5a97;
$custom-dark: #000000;
JSON
{
  "hex": "#45186c",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 272.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32775,
    "c": 0.1372,
    "h": 304
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#45186C
secondary
#6CA23E
accent
#E7418E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45186C

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

Preview Lab → · Contrast checker → · Palette generator →

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