#3818A7#3818A7

#3818A7 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.4% C 0.204 H 280.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3818A7
RGBrgb(56, 24, 167)
HSLhsl(253, 75%, 37%)
HSVhsv(253, 86%, 65%)
CMYKcmyk(66.5%, 85.6%, 0%, 34.5%)
CIE-LABlab(24.59, 52.36, -69.47)
CIE-LCHlch(24.59, 87.00, 307.01°)
OKLaboklab(37.39% 0.0365 -0.2005)
OKLCHoklch(37.39% 0.204 280.3)
XYZxyz(8.9304, 4.2833, 36.9079)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3818A7 #87A718
analogous
#183FA7 #3818A7 #8018A7
triadic
#3818A7 #A73818 #18A738
tetradic
#3818A7 #A7183F #87A718 #18A780
square
#3818A7 #A7183F #87A718 #18A780
split-complementary
#3818A7 #A78018 #3FA718
monochromatic
#14093C #261071 #3818A7 #4A20DD #7453E6

Accessibility & contrast

On white

11.31
#3818A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3818A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3818A7
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3818A7#FFFFFF#000000##FFFFFF
##3818A71.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3818a7;
/* rgb */ color: rgb(56, 24, 167);
/* oklch */ color: oklch(37.4% 0.204 280.3);
Tailwind
colors: {
  custom: {
    50: '#7f5cc3',
    500: '#3818a7',
    950: '#000000',
  },
}
SCSS
$custom: #3818a7;
$custom-light: #7f5cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3818a7",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 253.427,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37386,
    "c": 0.2038,
    "h": 280.3
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#3818A7
secondary
#AEC952
accent
#F136C8
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0413
muted
#7D7982

Preview Lab

Preview with #3818A7

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

Preview Lab → · Contrast checker → · Palette generator →

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