#3822A5#3822A5

#3822A5 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.194 H 279.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3822A5
RGBrgb(56, 34, 165)
HSLhsl(250, 66%, 39%)
HSVhsv(250, 79%, 65%)
CMYKcmyk(66.1%, 79.4%, 0%, 35.3%)
CIE-LABlab(25.86, 47.38, -66.15)
CIE-LCHlch(25.86, 81.37, 305.61°)
OKLaboklab(38.2% 0.0325 -0.191)
OKLCHoklch(38.2% 0.194 279.6)
XYZxyz(8.9923, 4.7007, 36.0235)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3822A5 #8FA522
analogous
#224EA5 #3822A5 #7A22A5
triadic
#3822A5 #A53822 #22A538
tetradic
#3822A5 #A5224E #8FA522 #22A57A
square
#3822A5 #A5224E #8FA522 #22A57A
split-complementary
#3822A5 #A57A22 #4EA522
monochromatic
#160D40 #271872 #3822A5 #4B30D4 #7763DF

Accessibility & contrast

On white

10.82
#3822A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3822A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3822A5
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3822A5#FFFFFF#000000##FFFFFF
##3822A51.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3822a5;
/* rgb */ color: rgb(56, 34, 165);
/* oklch */ color: oklch(38.2% 0.194 279.6);
Tailwind
colors: {
  custom: {
    50: '#7e61c1',
    500: '#3822a5',
    950: '#000000',
  },
}
SCSS
$custom: #3822a5;
$custom-light: #7e61c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3822a5",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 250.076,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38202,
    "c": 0.19372,
    "h": 279.6
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#3822A5
secondary
#B3C45F
accent
#E93FCC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3822A5

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

Preview Lab → · Contrast checker → · Palette generator →

#3822A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva