#45179E#45179E

#45179E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.5% C 0.193 H 288.5°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#45179E
RGBrgb(69, 23, 158)
HSLhsl(260, 75%, 35%)
HSVhsv(260, 85%, 62%)
CMYKcmyk(56.3%, 85.4%, 0%, 38%)
CIE-LABlab(24.78, 51.51, -63.63)
CIE-LCHlch(24.78, 81.87, 308.99°)
OKLaboklab(37.54% 0.0612 -0.1831)
OKLCHoklch(37.54% 0.193 288.5)
XYZxyz(8.9304, 4.3462, 32.7095)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45179E #709E17
analogous
#172D9E #45179E #88179E
triadic
#45179E #9E4517 #179E45
tetradic
#45179E #9E172D #709E17 #179E88
square
#45179E #9E172D #709E17 #179E88
split-complementary
#45179E #9E8817 #2D9E17
monochromatic
#160733 #2E0F69 #45179E #5C1FD3 #7F4BE5

Accessibility & contrast

On white

11.23
#45179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#45179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45179E
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45179E#FFFFFF#000000##FFFFFF
##45179E1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#1E425D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45179e;
/* rgb */ color: rgb(69, 23, 158);
/* oklch */ color: oklch(37.5% 0.193 288.5);
Tailwind
colors: {
  custom: {
    50: '#845dbc',
    500: '#45179e',
    950: '#000000',
  },
}
SCSS
$custom: #45179e;
$custom-light: #845dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#45179e",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 260.444,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.19308,
    "h": 288.5
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#45179E
secondary
#9CC64A
accent
#F137B2
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #45179E

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

Preview Lab → · Contrast checker → · Palette generator →

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