#45255F#45255F

#45255F is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.6% C 0.102 H 307.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#45255F
RGBrgb(69, 37, 95)
HSLhsl(273, 44%, 26%)
HSVhsv(273, 61%, 37%)
CMYKcmyk(27.4%, 61.1%, 0%, 62.7%)
CIE-LABlab(21.63, 27.37, -28.85)
CIE-LCHlch(21.63, 39.77, 313.49°)
OKLaboklab(33.6% 0.0617 -0.0812)
OKLCHoklch(33.6% 0.102 307.2)
XYZxyz(5.1809, 3.4146, 11.2104)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45255F #3F5F25
analogous
#28255F #45255F #5F255C
triadic
#45255F #5F4525 #255F45
tetradic
#45255F #5F2825 #3F5F25 #255C5F
square
#45255F #5F2825 #3F5F25 #255C5F
split-complementary
#45255F #5C5F25 #255F28
monochromatic
#100916 #251433 #45255F #65368B #8547B7

Accessibility & contrast

On white

12.48
#45255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#45255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45255F
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45255F#FFFFFF#000000##FFFFFF
##45255F1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103361
Deuteranopia (green-blind)
#1C345E
Tritanopia (blue-blind)
#41303E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45255f;
/* rgb */ color: rgb(69, 37, 95);
/* oklch */ color: oklch(33.6% 0.102 307.2);
Tailwind
colors: {
  custom: {
    50: '#7b618d',
    500: '#45255f',
    950: '#000000',
  },
}
SCSS
$custom: #45255f;
$custom-light: #7b618d;
$custom-dark: #000000;
JSON
{
  "hex": "#45255f",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 273.103,
    "s": 43.939,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33603,
    "c": 0.10205,
    "h": 307.2
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#45255F
secondary
#6C924D
accent
#D4548D
background
#F7F5F8
surface
#EEEAF0
border
#C9C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #45255F

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

Preview Lab → · Contrast checker → · Palette generator →

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