#45125F#45125F

#45125F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.130 H 311.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#45125F
RGBrgb(69, 18, 95)
HSLhsl(280, 68%, 22%)
HSVhsv(280, 81%, 37%)
CMYKcmyk(27.4%, 81.1%, 0%, 62.7%)
CIE-LABlab(18.03, 37.32, -34.65)
CIE-LCHlch(18.03, 50.92, 317.12°)
OKLaboklab(31.01% 0.0858 -0.0982)
OKLCHoklch(31.01% 0.13 311.1)
XYZxyz(4.7357, 2.5242, 11.0620)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45125F #2C5F12
analogous
#1E125F #45125F #5F1253
triadic
#45125F #5F4512 #125F45
tetradic
#45125F #5F1E12 #2C5F12 #12535F
square
#45125F #5F1E12 #2C5F12 #12535F
split-complementary
#45125F #535F12 #125F1E
monochromatic
#13051A #20082C #45125F #6A1C92 #9025C6

Accessibility & contrast

On white

13.96
#45125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#45125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45125F
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45125F#FFFFFF#000000##FFFFFF
##45125F1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#032D5D
Tritanopia (blue-blind)
#422438
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #45125f;
/* rgb */ color: rgb(69, 18, 95);
/* oklch */ color: oklch(31.0% 0.130 311.1);
Tailwind
colors: {
  custom: {
    50: '#7c568d',
    500: '#45125f',
    950: '#000000',
  },
}
SCSS
$custom: #45125f;
$custom-light: #7c568d;
$custom-dark: #000000;
JSON
{
  "hex": "#45125f",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 279.74,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31008,
    "c": 0.13035,
    "h": 311.1
  },
  "luminance": 0.02524
}

Semantic roles & 50–950 ramp

primary
#45125F
secondary
#579736
accent
#EB3D78
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #45125F

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

Preview Lab → · Contrast checker → · Palette generator →

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