#4A26B2#4A26B2

#4A26B2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.6% C 0.203 H 285.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4A26B2
RGBrgb(74, 38, 178)
HSLhsl(255, 65%, 42%)
HSVhsv(255, 79%, 70%)
CMYKcmyk(58.4%, 78.7%, 0%, 30.2%)
CIE-LABlab(29.55, 51.31, -67.82)
CIE-LCHlch(29.55, 85.05, 307.11°)
OKLaboklab(41.58% 0.0533 -0.1954)
OKLCHoklch(41.58% 0.203 285.3)
XYZxyz(11.5506, 6.0557, 42.6711)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A26B2 #8EB226
analogous
#2648B2 #4A26B2 #9026B2
triadic
#4A26B2 #B24A26 #26B24A
tetradic
#4A26B2 #B22648 #8EB226 #26B290
square
#4A26B2 #B22648 #8EB226 #26B290
split-complementary
#4A26B2 #B29026 #48B226
monochromatic
#20104D #351B80 #4A26B2 #663FD6 #8E72E1

Accessibility & contrast

On white

9.50
#4A26B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A26B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A26B2
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A26B2#FFFFFF#000000##FFFFFF
##4A26B21.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#0F4F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a26b2;
/* rgb */ color: rgb(74, 38, 178);
/* oklch */ color: oklch(41.6% 0.203 285.3);
Tailwind
colors: {
  custom: {
    50: '#8965ca',
    500: '#4a26b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a26b2;
$custom-light: #8965ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a26b2",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 255.429,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41583,
    "c": 0.20252,
    "h": 285.3
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#4A26B2
secondary
#B0C86C
accent
#E840BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A26B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4A26B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva