#42268E#42268E

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

Color values

HEX#42268E
RGBrgb(66, 38, 142)
HSLhsl(256, 58%, 35%)
HSVhsv(256, 73%, 56%)
CMYKcmyk(53.5%, 73.2%, 0%, 44.3%)
CIE-LABlab(25.25, 39.67, -53.02)
CIE-LCHlch(25.25, 66.22, 306.80°)
OKLaboklab(37.31% 0.0506 -0.1524)
OKLCHoklch(37.31% 0.161 288.4)
XYZxyz(7.8209, 4.4971, 26.0419)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42268E #728E26
analogous
#263E8E #42268E #76268E
triadic
#42268E #8E4226 #268E42
tetradic
#42268E #8E263E #728E26 #268E76
square
#42268E #8E263E #728E26 #268E76
split-complementary
#42268E #8E7626 #3E8E26
monochromatic
#150C2D #2C195E #42268E #5833BE #7C5BD3

Accessibility & contrast

On white

11.06
#42268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#42268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42268E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42268E#FFFFFF#000000##FFFFFF
##42268E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#254257
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42268e;
/* rgb */ color: rgb(66, 38, 142);
/* oklch */ color: oklch(37.3% 0.161 288.4);
Tailwind
colors: {
  custom: {
    50: '#7f63b0',
    500: '#42268e',
    950: '#000000',
  },
}
SCSS
$custom: #42268e;
$custom-light: #7f63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42268e",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 256.154,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3731,
    "c": 0.16055,
    "h": 288.4
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#42268E
secondary
#9EB858
accent
#E147B7
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #42268E

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

Preview Lab → · Contrast checker → · Palette generator →

#42268E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva