#38196F#38196F

#38196F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.138 H 293.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#38196F
RGBrgb(56, 25, 111)
HSLhsl(262, 63%, 27%)
HSVhsv(262, 77%, 44%)
CMYKcmyk(49.5%, 77.5%, 0%, 56.5%)
CIE-LABlab(18.73, 35.72, -44.10)
CIE-LCHlch(18.73, 56.75, 309.01°)
OKLaboklab(31.54% 0.0544 -0.1264)
OKLCHoklch(31.54% 0.138 293.3)
XYZxyz(4.8470, 2.6836, 15.2984)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38196F #506F19
analogous
#19256F #38196F #63196F
triadic
#38196F #6F3819 #196F38
tetradic
#38196F #6F1925 #506F19 #196F63
square
#38196F #6F1925 #506F19 #196F63
split-complementary
#38196F #6F6319 #256F19
monochromatic
#0D0619 #1F0E3D #38196F #5124A1 #6B32D1

Accessibility & contrast

On white

13.66
#38196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#38196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38196F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38196F#FFFFFF#000000##FFFFFF
##38196F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#273042
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38196f;
/* rgb */ color: rgb(56, 25, 111);
/* oklch */ color: oklch(31.5% 0.138 293.3);
Tailwind
colors: {
  custom: {
    50: '#755999',
    500: '#38196f',
    950: '#000000',
  },
}
SCSS
$custom: #38196f;
$custom-light: #755999;
$custom-dark: #000000;
JSON
{
  "hex": "#38196f",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 261.628,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31538,
    "c": 0.13766,
    "h": 293.3
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#38196F
secondary
#80A43F
accent
#E642AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #38196F

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

Preview Lab → · Contrast checker → · Palette generator →

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