#45145F#45145F

#45145F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.128 H 310.9°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#45145F
RGBrgb(69, 20, 95)
HSLhsl(279, 65%, 23%)
HSVhsv(279, 79%, 37%)
CMYKcmyk(27.4%, 78.9%, 0%, 62.7%)
CIE-LABlab(18.33, 36.45, -34.17)
CIE-LCHlch(18.33, 49.96, 316.85°)
OKLaboklab(31.22% 0.0837 -0.0967)
OKLCHoklch(31.22% 0.128 310.9)
XYZxyz(4.7696, 2.5919, 11.0733)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45145F #2E5F14
analogous
#20145F #45145F #5F1453
triadic
#45145F #5F4514 #145F45
tetradic
#45145F #5F2014 #2E5F14 #14535F
square
#45145F #5F2014 #2E5F14 #14535F
split-complementary
#45145F #535F14 #145F20
monochromatic
#120519 #20092C #45145F #6A1F92 #8E29C4

Accessibility & contrast

On white

13.83
#45145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#45145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45145F
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45145F#FFFFFF#000000##FFFFFF
##45145F1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#062E5D
Tritanopia (blue-blind)
#422538
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #45145f;
/* rgb */ color: rgb(69, 20, 95);
/* oklch */ color: oklch(31.2% 0.128 310.9);
Tailwind
colors: {
  custom: {
    50: '#7c578d',
    500: '#45145f',
    950: '#000000',
  },
}
SCSS
$custom: #45145f;
$custom-light: #7c578d;
$custom-dark: #000000;
JSON
{
  "hex": "#45145f",
  "rgb": {
    "r": 69,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 279.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31221,
    "c": 0.12792,
    "h": 310.9
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#45145F
secondary
#599738
accent
#E8407A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #45145F

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

Preview Lab → · Contrast checker → · Palette generator →

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