#38198C#38198C

#38198C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.172 H 285.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#38198C
RGBrgb(56, 25, 140)
HSLhsl(256, 70%, 32%)
HSVhsv(256, 82%, 55%)
CMYKcmyk(60%, 82.1%, 0%, 45.1%)
CIE-LABlab(21.69, 44.21, -57.68)
CIE-LCHlch(21.69, 72.67, 307.47°)
OKLaboklab(34.5% 0.0455 -0.1662)
OKLCHoklch(34.5% 0.172 285.3)
XYZxyz(6.7107, 3.4291, 25.1141)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38198C #6D8C19
analogous
#19338C #38198C #72198C
triadic
#38198C #8C3819 #198C38
tetradic
#38198C #8C1933 #6D8C19 #198C72
square
#38198C #8C1933 #6D8C19 #198C72
split-complementary
#38198C #8C7219 #338C19
monochromatic
#0E0624 #231058 #38198C #4D22C0 #6C42DD

Accessibility & contrast

On white

12.46
#38198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#38198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38198C
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38198C#FFFFFF#000000##FFFFFF
##38198C1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#073C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38198c;
/* rgb */ color: rgb(56, 25, 140);
/* oklch */ color: oklch(34.5% 0.172 285.3);
Tailwind
colors: {
  custom: {
    50: '#7a5baf',
    500: '#38198c',
    950: '#000000',
  },
}
SCSS
$custom: #38198c;
$custom-light: #7a5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#38198c",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 256.174,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.1723,
    "h": 285.3
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#38198C
secondary
#9DBE43
accent
#ED3BBD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #38198C

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

Preview Lab → · Contrast checker → · Palette generator →

#38198C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva