#45185C#45185C

#45185C is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.5% C 0.119 H 311.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#45185C
RGBrgb(69, 24, 92)
HSLhsl(280, 59%, 23%)
HSVhsv(280, 74%, 36%)
CMYKcmyk(25%, 73.9%, 0%, 63.9%)
CIE-LABlab(18.76, 33.84, -31.47)
CIE-LCHlch(18.76, 46.22, 317.08°)
OKLaboklab(31.46% 0.0796 -0.0888)
OKLCHoklch(31.46% 0.119 311.8)
XYZxyz(4.7123, 2.6913, 10.3944)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45185C #2F5C18
analogous
#23185C #45185C #5C1851
triadic
#45185C #5C4518 #185C45
tetradic
#45185C #5C2318 #2F5C18 #18515C
square
#45185C #5C2318 #2F5C18 #18515C
split-complementary
#45185C #515C18 #185C23
monochromatic
#120618 #210B2B #45185C #69258D #8E31BD

Accessibility & contrast

On white

13.65
#45185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#45185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45185C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45185C#FFFFFF#000000##FFFFFF
##45185C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#102F5A
Tritanopia (blue-blind)
#422638
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #45185c;
/* rgb */ color: rgb(69, 24, 92);
/* oklch */ color: oklch(31.5% 0.119 311.8);
Tailwind
colors: {
  custom: {
    50: '#7b598b',
    500: '#45185c',
    950: '#000000',
  },
}
SCSS
$custom: #45185c;
$custom-light: #7b598b;
$custom-dark: #000000;
JSON
{
  "hex": "#45185c",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 279.706,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31456,
    "c": 0.11926,
    "h": 311.8
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#45185C
secondary
#5A933D
accent
#E2467B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #45185C

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

Preview Lab → · Contrast checker → · Palette generator →

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