#45255B#45255B

#45255B is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.097 H 309.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#45255B
RGBrgb(69, 37, 91)
HSLhsl(276, 42%, 25%)
HSVhsv(276, 59%, 36%)
CMYKcmyk(24.2%, 59.3%, 0%, 64.3%)
CIE-LABlab(21.37, 26.31, -26.63)
CIE-LCHlch(21.37, 37.44, 314.66°)
OKLaboklab(33.33% 0.0616 -0.0747)
OKLCHoklch(33.33% 0.097 309.5)
XYZxyz(5.0038, 3.3438, 10.2773)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45255B #3B5B25
analogous
#2A255B #45255B #5B2556
triadic
#45255B #5B4525 #255B45
tetradic
#45255B #5B2A25 #3B5B25 #25565B
square
#45255B #5B2A25 #3B5B25 #25565B
split-complementary
#45255B #565B25 #255B2A
monochromatic
#100916 #24132F #45255B #663787 #8748B2

Accessibility & contrast

On white

12.58
#45255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45255B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45255B#FFFFFF#000000##FFFFFF
##45255B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14325D
Deuteranopia (green-blind)
#1F345A
Tritanopia (blue-blind)
#422F3C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45255b;
/* rgb */ color: rgb(69, 37, 91);
/* oklch */ color: oklch(33.3% 0.097 309.5);
Tailwind
colors: {
  custom: {
    50: '#7a618a',
    500: '#45255b',
    950: '#000000',
  },
}
SCSS
$custom: #45255b;
$custom-light: #7a618a;
$custom-dark: #000000;
JSON
{
  "hex": "#45255b",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 275.556,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33326,
    "c": 0.09683,
    "h": 309.5
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#45255B
secondary
#688E4D
accent
#D25688
background
#F7F5F8
surface
#EEEAF0
border
#C9C6CB
text
#09050B
muted
#7B797C

Preview Lab

Preview with #45255B

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

Preview Lab → · Contrast checker → · Palette generator →

#45255B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva