#4026A7#4026A7

#4026A7 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.191 H 282.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4026A7
RGBrgb(64, 38, 167)
HSLhsl(252, 63%, 40%)
HSVhsv(252, 77%, 65%)
CMYKcmyk(61.7%, 77.2%, 0%, 34.5%)
CIE-LABlab(27.48, 46.89, -64.67)
CIE-LCHlch(27.48, 79.88, 305.95°)
OKLaboklab(39.57% 0.0414 -0.1865)
OKLCHoklch(39.57% 0.191 282.5)
XYZxyz(9.7803, 5.2656, 37.0527)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026A7 #8DA726
analogous
#264CA7 #4026A7 #8026A7
triadic
#4026A7 #A74026 #26A740
tetradic
#4026A7 #A7264C #8DA726 #26A780
square
#4026A7 #A7264C #8DA726 #26A780
split-complementary
#4026A7 #A78026 #4CA726
monochromatic
#1A0F43 #2D1B75 #4026A7 #5738D2 #816ADD

Accessibility & contrast

On white

10.23
#4026A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4026A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026A7
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026A7#FFFFFF#000000##FFFFFF
##4026A71.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4026a7;
/* rgb */ color: rgb(64, 38, 167);
/* oklch */ color: oklch(39.6% 0.191 282.5);
Tailwind
colors: {
  custom: {
    50: '#8264c2',
    500: '#4026a7',
    950: '#000000',
  },
}
SCSS
$custom: #4026a7;
$custom-light: #8264c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4026a7",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 252.093,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39568,
    "c": 0.19102,
    "h": 282.5
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#4026A7
secondary
#B0C365
accent
#E642C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026A7

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

Preview Lab → · Contrast checker → · Palette generator →

#4026A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva