#38196A#38196A

#38196A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.132 H 295.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#38196A
RGBrgb(56, 25, 106)
HSLhsl(263, 62%, 26%)
HSVhsv(263, 76%, 42%)
CMYKcmyk(47.2%, 76.4%, 0%, 58.4%)
CIE-LABlab(18.26, 34.26, -41.61)
CIE-LCHlch(18.26, 53.90, 309.47°)
OKLaboklab(31.06% 0.0557 -0.1191)
OKLCHoklch(31.06% 0.132 295)
XYZxyz(4.5793, 2.5765, 13.8889)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38196A #4B6A19
analogous
#19226A #38196A #60196A
triadic
#38196A #6A3819 #196A38
tetradic
#38196A #6A1922 #4B6A19 #196A60
square
#38196A #6A1922 #4B6A19 #196A60
split-complementary
#38196A #6A6019 #226A19
monochromatic
#0D0619 #1E0D38 #38196A #52259C #6C30CD

Accessibility & contrast

On white

13.86
#38196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38196A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38196A#FFFFFF#000000##FFFFFF
##38196A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#2A2E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38196a;
/* rgb */ color: rgb(56, 25, 106);
/* oklch */ color: oklch(31.1% 0.132 295.0);
Tailwind
colors: {
  custom: {
    50: '#745995',
    500: '#38196a',
    950: '#000000',
  },
}
SCSS
$custom: #38196a;
$custom-light: #745995;
$custom-dark: #000000;
JSON
{
  "hex": "#38196a",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 262.963,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31063,
    "c": 0.13151,
    "h": 295
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#38196A
secondary
#7BA03F
accent
#E543A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #38196A

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

Preview Lab → · Contrast checker → · Palette generator →

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