#45285C#45285C

#45285C is a dark, moderate violet. Relative luminance 0.036; OKLCH L 33.9% C 0.093 H 308.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#45285C
RGBrgb(69, 40, 92)
HSLhsl(273, 39%, 26%)
HSVhsv(273, 57%, 36%)
CMYKcmyk(25%, 56.5%, 0%, 63.9%)
CIE-LABlab(22.14, 24.72, -26.06)
CIE-LCHlch(22.14, 35.92, 313.49°)
OKLaboklab(33.92% 0.057 -0.0731)
OKLCHoklch(33.92% 0.093 308)
XYZxyz(5.1444, 3.5556, 10.5384)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45285C #3F5C28
analogous
#2B285C #45285C #5C2859
triadic
#45285C #5C4528 #285C45
tetradic
#45285C #5C2B28 #3F5C28 #28595C
square
#45285C #5C2B28 #3F5C28 #28595C
split-complementary
#45285C #595C28 #285C2B
monochromatic
#100915 #251531 #45285C #653B87 #854DB1

Accessibility & contrast

On white

12.27
#45285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#45285C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45285C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45285C#FFFFFF#000000##FFFFFF
##45285C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19345E
Deuteranopia (green-blind)
#22355B
Tritanopia (blue-blind)
#42313E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45285c;
/* rgb */ color: rgb(69, 40, 92);
/* oklch */ color: oklch(33.9% 0.093 308.0);
Tailwind
colors: {
  custom: {
    50: '#7a638a',
    500: '#45285c',
    950: '#000000',
  },
}
SCSS
$custom: #45285c;
$custom-light: #7a638a;
$custom-dark: #000000;
JSON
{
  "hex": "#45285c",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 273.462,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33916,
    "c": 0.09271,
    "h": 308
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#45285C
secondary
#6C8F51
accent
#CF598D
background
#F7F5F8
surface
#EEEAF0
border
#C9C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #45285C

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

Preview Lab → · Contrast checker → · Palette generator →

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