#42268C#42268C

#42268C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.158 H 288.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#42268C
RGBrgb(66, 38, 140)
HSLhsl(256, 57%, 35%)
HSVhsv(256, 73%, 55%)
CMYKcmyk(52.9%, 72.9%, 0%, 45.1%)
CIE-LABlab(25.07, 39.07, -52.08)
CIE-LCHlch(25.07, 65.11, 306.88°)
OKLaboklab(37.12% 0.0511 -0.1496)
OKLCHoklch(37.12% 0.158 288.8)
XYZxyz(7.6721, 4.4376, 25.2581)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42268C #708C26
analogous
#263D8C #42268C #75268C
triadic
#42268C #8C4226 #268C42
tetradic
#42268C #8C263D #708C26 #268C75
square
#42268C #8C263D #708C26 #268C75
split-complementary
#42268C #8C7526 #3D8C26
monochromatic
#150C2C #2B195C #42268C #5933BC #7B5AD2

Accessibility & contrast

On white

11.13
#42268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#42268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42268C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42268C#FFFFFF#000000##FFFFFF
##42268C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#274156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42268c;
/* rgb */ color: rgb(66, 38, 140);
/* oklch */ color: oklch(37.1% 0.158 288.8);
Tailwind
colors: {
  custom: {
    50: '#7e63af',
    500: '#42268c',
    950: '#000000',
  },
}
SCSS
$custom: #42268c;
$custom-light: #7e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#42268c",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 256.471,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.15807,
    "h": 288.8
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#42268C
secondary
#9DB757
accent
#E147B6
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42268C

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

Preview Lab → · Contrast checker → · Palette generator →

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