#4F26A2#4F26A2

#4F26A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.184 H 290.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4F26A2
RGBrgb(79, 38, 162)
HSLhsl(260, 62%, 39%)
HSVhsv(260, 77%, 64%)
CMYKcmyk(51.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(28.53, 47.50, -59.86)
CIE-LCHlch(28.53, 76.41, 308.43°)
OKLaboklab(40.52% 0.0656 -0.1719)
OKLCHoklch(40.52% 0.184 290.9)
XYZxyz(10.4373, 5.6567, 34.7173)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26A2 #79A226
analogous
#263BA2 #4F26A2 #8D26A2
triadic
#4F26A2 #A24F26 #26A24F
tetradic
#4F26A2 #A2263B #79A226 #26A28D
square
#4F26A2 #A2263B #79A226 #26A28D
split-complementary
#4F26A2 #A28D26 #3BA226
monochromatic
#1F0F3F #371A70 #4F26A2 #6835D0 #8E67DB

Accessibility & contrast

On white

9.85
#4F26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F26A2
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26A2#FFFFFF#000000##FFFFFF
##4F26A21.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#324863
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f26a2;
/* rgb */ color: rgb(79, 38, 162);
/* oklch */ color: oklch(40.5% 0.184 290.9);
Tailwind
colors: {
  custom: {
    50: '#8965bf',
    500: '#4f26a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f26a2;
$custom-light: #8965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26a2",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 259.839,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40523,
    "c": 0.18401,
    "h": 290.9
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#4F26A2
secondary
#A2C163
accent
#E543AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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