#38196B#38196B

#38196B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.133 H 294.7°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#38196B
RGBrgb(56, 25, 107)
HSLhsl(263, 62%, 26%)
HSVhsv(263, 77%, 42%)
CMYKcmyk(47.7%, 76.6%, 0%, 58%)
CIE-LABlab(18.35, 34.55, -42.11)
CIE-LCHlch(18.35, 54.47, 309.37°)
OKLaboklab(31.16% 0.0554 -0.1206)
OKLCHoklch(31.16% 0.133 294.7)
XYZxyz(4.6316, 2.5974, 14.1644)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38196B #4C6B19
analogous
#19236B #38196B #61196B
triadic
#38196B #6B3819 #196B38
tetradic
#38196B #6B1923 #4C6B19 #196B61
square
#38196B #6B1923 #4C6B19 #196B61
split-complementary
#38196B #6B6119 #236B19
monochromatic
#0D0619 #1E0D39 #38196B #52259D #6C30CE

Accessibility & contrast

On white

13.82
#38196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#38196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38196B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38196B#FFFFFF#000000##FFFFFF
##38196B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#292E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38196b;
/* rgb */ color: rgb(56, 25, 107);
/* oklch */ color: oklch(31.2% 0.133 294.7);
Tailwind
colors: {
  custom: {
    50: '#745996',
    500: '#38196b',
    950: '#000000',
  },
}
SCSS
$custom: #38196b;
$custom-light: #745996;
$custom-dark: #000000;
JSON
{
  "hex": "#38196b",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 262.683,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31157,
    "c": 0.13274,
    "h": 294.7
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#38196B
secondary
#7CA13F
accent
#E543A8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #38196B

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

Preview Lab → · Contrast checker → · Palette generator →

#38196B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva