#42258F#42258F

#42258F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.163 H 288.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#42258F
RGBrgb(66, 37, 143)
HSLhsl(256, 59%, 35%)
HSVhsv(256, 74%, 56%)
CMYKcmyk(53.8%, 74.1%, 0%, 43.9%)
CIE-LABlab(25.15, 40.51, -53.81)
CIE-LCHlch(25.15, 67.35, 306.97°)
OKLaboklab(37.27% 0.0513 -0.1546)
OKLCHoklch(37.27% 0.163 288.4)
XYZxyz(7.8648, 4.4642, 26.4285)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42258F #728F25
analogous
#253D8F #42258F #77258F
triadic
#42258F #8F4225 #258F42
tetradic
#42258F #8F253D #728F25 #258F77
square
#42258F #8F253D #728F25 #258F77
split-complementary
#42258F #8F7725 #3D8F25
monochromatic
#150C2E #2C185E #42258F #5832C0 #7C5AD4

Accessibility & contrast

On white

11.09
#42258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#42258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42258F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42258F#FFFFFF#000000##FFFFFF
##42258F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#244158
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42258f;
/* rgb */ color: rgb(66, 37, 143);
/* oklch */ color: oklch(37.3% 0.163 288.4);
Tailwind
colors: {
  custom: {
    50: '#7f62b1',
    500: '#42258f',
    950: '#000000',
  },
}
SCSS
$custom: #42258f;
$custom-light: #7f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42258f",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 256.415,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.16294,
    "h": 288.4
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#42258F
secondary
#9EB957
accent
#E246B7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42258F

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

Preview Lab → · Contrast checker → · Palette generator →

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