#38186A#38186A

#38186A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.133 H 295.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#38186A
RGBrgb(56, 24, 106)
HSLhsl(263, 63%, 25%)
HSVhsv(263, 77%, 42%)
CMYKcmyk(47.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.07, 34.79, -41.91)
CIE-LCHlch(18.07, 54.47, 309.69°)
OKLaboklab(30.93% 0.0567 -0.12)
OKLCHoklch(30.93% 0.133 295.3)
XYZxyz(4.5583, 2.5345, 13.8819)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38186A #4A6A18
analogous
#18216A #38186A #61186A
triadic
#38186A #6A3818 #186A38
tetradic
#38186A #6A1821 #4A6A18 #186A61
square
#38186A #6A1821 #4A6A18 #186A61
split-complementary
#38186A #6A6118 #216A18
monochromatic
#0D0619 #1E0D38 #38186A #52239C #6D2FCE

Accessibility & contrast

On white

13.93
#38186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#38186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38186A
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38186A#FFFFFF#000000##FFFFFF
##38186A1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38186a;
/* rgb */ color: rgb(56, 24, 106);
/* oklch */ color: oklch(30.9% 0.133 295.3);
Tailwind
colors: {
  custom: {
    50: '#745895',
    500: '#38186a',
    950: '#000000',
  },
}
SCSS
$custom: #38186a;
$custom-light: #745895;
$custom-dark: #000000;
JSON
{
  "hex": "#38186a",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 263.415,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.13274,
    "h": 295.3
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#38186A
secondary
#7AA03E
accent
#E642A6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38186A

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

Preview Lab → · Contrast checker → · Palette generator →

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