#45186F#45186F

#45186F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.141 H 302.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#45186F
RGBrgb(69, 24, 111)
HSLhsl(271, 64%, 26%)
HSVhsv(271, 78%, 44%)
CMYKcmyk(37.8%, 78.4%, 0%, 56.5%)
CIE-LABlab(20.31, 38.63, -41.45)
CIE-LCHlch(20.31, 56.66, 312.99°)
OKLaboklab(33.04% 0.0761 -0.1182)
OKLCHoklch(33.04% 0.141 302.8)
XYZxyz(5.6494, 3.0662, 15.3300)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45186F #426F18
analogous
#19186F #45186F #6F186E
triadic
#45186F #6F4518 #186F45
tetradic
#45186F #6F1918 #426F18 #186E6F
square
#45186F #6F1918 #426F18 #186E6F
split-complementary
#45186F #6E6F18 #186F19
monochromatic
#100519 #260D3D #45186F #6423A1 #842FD2

Accessibility & contrast

On white

13.02
#45186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#45186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45186F
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45186F#FFFFFF#000000##FFFFFF
##45186F1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#3C2E42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #45186f;
/* rgb */ color: rgb(69, 24, 111);
/* oklch */ color: oklch(33.0% 0.141 302.8);
Tailwind
colors: {
  custom: {
    50: '#7d5a99',
    500: '#45186f',
    950: '#000000',
  },
}
SCSS
$custom: #45186f;
$custom-light: #7d5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#45186f",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 271.034,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33038,
    "c": 0.14056,
    "h": 302.8
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#45186F
secondary
#70A53E
accent
#E74091
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45186F

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

Preview Lab → · Contrast checker → · Palette generator →

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