#38256D#38256D

#38256D is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.2% C 0.119 H 290.6°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#38256D
RGBrgb(56, 37, 109)
HSLhsl(256, 49%, 29%)
HSVhsv(256, 66%, 43%)
CMYKcmyk(48.6%, 66.1%, 0%, 57.3%)
CIE-LABlab(21.09, 28.14, -38.96)
CIE-LCHlch(21.09, 48.06, 305.84°)
OKLaboklab(33.17% 0.0418 -0.1114)
OKLCHoklch(33.17% 0.119 290.6)
XYZxyz(5.0520, 3.2678, 14.8296)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38256D #5A6D25
analogous
#25366D #38256D #5C256D
triadic
#38256D #6D3825 #256D38
tetradic
#38256D #6D2536 #5A6D25 #256D5C
square
#38256D #6D2536 #5A6D25 #256D5C
split-complementary
#38256D #6D5C25 #366D25
monochromatic
#0C0817 #21153F #38256D #4F359B #6A4BC2

Accessibility & contrast

On white

12.70
#38256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#38256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38256D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38256D#FFFFFF#000000##FFFFFF
##38256D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#283645
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38256d;
/* rgb */ color: rgb(56, 37, 109);
/* oklch */ color: oklch(33.2% 0.119 290.6);
Tailwind
colors: {
  custom: {
    50: '#746097',
    500: '#38256d',
    950: '#000000',
  },
}
SCSS
$custom: #38256d;
$custom-light: #746097;
$custom-dark: #000000;
JSON
{
  "hex": "#38256d",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 255.833,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33171,
    "c": 0.11899,
    "h": 290.6
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#38256D
secondary
#8AA04E
accent
#D94FB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #38256D

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

Preview Lab → · Contrast checker → · Palette generator →

#38256D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva