#38246A#38246A

#38246A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.7% C 0.116 H 291.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#38246A
RGBrgb(56, 36, 106)
HSLhsl(257, 49%, 28%)
HSVhsv(257, 66%, 42%)
CMYKcmyk(47.2%, 66%, 0%, 58.4%)
CIE-LABlab(20.61, 27.82, -37.79)
CIE-LCHlch(20.61, 46.93, 306.36°)
OKLaboklab(32.75% 0.0433 -0.1079)
OKLCHoklch(32.75% 0.116 291.9)
XYZxyz(4.8626, 3.1430, 13.9833)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38246A #566A24
analogous
#24336A #38246A #5B246A
triadic
#38246A #6A3824 #246A38
tetradic
#38246A #6A2433 #566A24 #246A5B
square
#38246A #6A2433 #566A24 #246A5B
split-complementary
#38246A #6A5B24 #336A24
monochromatic
#0C0817 #20143C #38246A #503498 #6A48C1

Accessibility & contrast

On white

12.89
#38246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#38246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38246A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38246A#FFFFFF#000000##FFFFFF
##38246A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#293443
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #38246a;
/* rgb */ color: rgb(56, 36, 106);
/* oklch */ color: oklch(32.7% 0.116 291.9);
Tailwind
colors: {
  custom: {
    50: '#736095',
    500: '#38246a',
    950: '#000000',
  },
}
SCSS
$custom: #38246a;
$custom-light: #736095;
$custom-dark: #000000;
JSON
{
  "hex": "#38246a",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 257.143,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.11631,
    "h": 291.9
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#38246A
secondary
#869D4D
accent
#D94FB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #38246A

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

Preview Lab → · Contrast checker → · Palette generator →

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