#38146F#38146F

#38146F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.143 H 294.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#38146F
RGBrgb(56, 20, 111)
HSLhsl(264, 69%, 26%)
HSVhsv(264, 82%, 44%)
CMYKcmyk(49.5%, 82%, 0%, 56.5%)
CIE-LABlab(17.87, 38.19, -45.51)
CIE-LCHlch(17.87, 59.41, 310.00°)
OKLaboklab(30.93% 0.0589 -0.1305)
OKLCHoklch(30.93% 0.143 294.3)
XYZxyz(4.7495, 2.4886, 15.2660)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38146F #4B6F14
analogous
#141D6F #38146F #65146F
triadic
#38146F #6F3814 #146F38
tetradic
#38146F #6F141D #4B6F14 #146F65
square
#38146F #6F141D #4B6F14 #146F65
split-complementary
#38146F #6F6514 #1D6F14
monochromatic
#0D051A #1E0B3B #38146F #521DA3 #6C27D7

Accessibility & contrast

On white

14.02
#38146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#38146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38146F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38146F#FFFFFF#000000##FFFFFF
##38146F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#272E41
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38146f;
/* rgb */ color: rgb(56, 20, 111);
/* oklch */ color: oklch(30.9% 0.143 294.3);
Tailwind
colors: {
  custom: {
    50: '#755699',
    500: '#38146f',
    950: '#000000',
  },
}
SCSS
$custom: #38146f;
$custom-light: #755699;
$custom-dark: #000000;
JSON
{
  "hex": "#38146f",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 263.736,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30934,
    "c": 0.14321,
    "h": 294.3
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#38146F
secondary
#7BA639
accent
#EC3CA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38146F

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

Preview Lab → · Contrast checker → · Palette generator →

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