#45256A#45256A

#45256A is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.4% C 0.116 H 302.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#45256A
RGBrgb(69, 37, 106)
HSLhsl(268, 48%, 28%)
HSVhsv(268, 65%, 42%)
CMYKcmyk(34.9%, 65.1%, 0%, 58.4%)
CIE-LABlab(22.40, 30.37, -34.81)
CIE-LCHlch(22.40, 46.19, 311.10°)
OKLaboklab(34.41% 0.0616 -0.0987)
OKLCHoklch(34.41% 0.116 302)
XYZxyz(5.7167, 3.6289, 14.0322)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45256A #4A6A25
analogous
#25276A #45256A #67256A
triadic
#45256A #6A4525 #256A45
tetradic
#45256A #6A2527 #4A6A25 #256A67
square
#45256A #6A2527 #4A6A25 #256A67
split-complementary
#45256A #6A6725 #276A25
monochromatic
#0F0817 #27153D #45256A #633597 #804AC0

Accessibility & contrast

On white

12.17
#45256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#45256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45256A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45256A#FFFFFF#000000##FFFFFF
##45256A1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#0F3568
Tritanopia (blue-blind)
#3E3443
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #45256a;
/* rgb */ color: rgb(69, 37, 106);
/* oklch */ color: oklch(34.4% 0.116 302.0);
Tailwind
colors: {
  custom: {
    50: '#7c6195',
    500: '#45256a',
    950: '#000000',
  },
}
SCSS
$custom: #45256a;
$custom-light: #7c6195;
$custom-dark: #000000;
JSON
{
  "hex": "#45256a",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 267.826,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.11636,
    "h": 302
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#45256A
secondary
#789D4E
accent
#D85099
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45256A

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

Preview Lab → · Contrast checker → · Palette generator →

#45256A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva