#45186E#45186E

#45186E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.139 H 303.2°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#45186E
RGBrgb(69, 24, 110)
HSLhsl(271, 64%, 26%)
HSVhsv(271, 78%, 43%)
CMYKcmyk(37.3%, 78.2%, 0%, 56.9%)
CIE-LABlab(20.22, 38.38, -40.94)
CIE-LCHlch(20.22, 56.11, 313.15°)
OKLaboklab(32.95% 0.0764 -0.1167)
OKLCHoklch(32.95% 0.139 303.2)
XYZxyz(5.5947, 3.0443, 15.0417)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45186E #416E18
analogous
#1A186E #45186E #6E186C
triadic
#45186E #6E4518 #186E45
tetradic
#45186E #6E1A18 #416E18 #186C6E
square
#45186E #6E1A18 #416E18 #186C6E
split-complementary
#45186E #6C6E18 #186E1A
monochromatic
#100519 #250D3C #45186E #6523A0 #842FD2

Accessibility & contrast

On white

13.05
#45186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45186E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45186E#FFFFFF#000000##FFFFFF
##45186E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#3D2E42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #45186e;
/* rgb */ color: rgb(69, 24, 110);
/* oklch */ color: oklch(32.9% 0.139 303.2);
Tailwind
colors: {
  custom: {
    50: '#7d5a98',
    500: '#45186e',
    950: '#000000',
  },
}
SCSS
$custom: #45186e;
$custom-light: #7d5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#45186e",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 271.395,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32949,
    "c": 0.13944,
    "h": 303.2
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#45186E
secondary
#6FA43E
accent
#E74190
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45186E

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

Preview Lab → · Contrast checker → · Palette generator →

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