#3E2275#3E2275

#3E2275 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.134 H 293.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3E2275
RGBrgb(62, 34, 117)
HSLhsl(260, 55%, 30%)
HSVhsv(260, 71%, 46%)
CMYKcmyk(47%, 70.9%, 0%, 54.1%)
CIE-LABlab(21.77, 33.68, -42.97)
CIE-LCHlch(21.77, 54.60, 308.09°)
OKLaboklab(34.03% 0.0534 -0.123)
OKLCHoklch(34.03% 0.134 293.5)
XYZxyz(5.7686, 3.4524, 17.1886)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2275 #597522
analogous
#223075 #3E2275 #682275
triadic
#3E2275 #753E22 #22753E
tetradic
#3E2275 #752230 #597522 #227568
square
#3E2275 #752230 #597522 #227568
split-complementary
#3E2275 #756822 #307522
monochromatic
#0D0718 #251446 #3E2275 #5730A4 #7448CA

Accessibility & contrast

On white

12.42
#3E2275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E2275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2275
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2275#FFFFFF#000000##FFFFFF
##3E22751.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#2E3648
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e2275;
/* rgb */ color: rgb(62, 34, 117);
/* oklch */ color: oklch(34.0% 0.134 293.5);
Tailwind
colors: {
  custom: {
    50: '#795f9d',
    500: '#3e2275',
    950: '#000000',
  },
}
SCSS
$custom: #3e2275;
$custom-light: #795f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2275",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 260.241,
    "s": 54.967,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34035,
    "c": 0.13405,
    "h": 293.5
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#3E2275
secondary
#89A84B
accent
#DE49AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2275

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

Preview Lab → · Contrast checker → · Palette generator →

#3E2275 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva