#5E6215#5E6215

#5E6215 is a mid, moderate yellow. Relative luminance 0.112; OKLCH L 47.8% C 0.096 H 112.5°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5E6215
RGBrgb(94, 98, 21)
HSLhsl(63, 65%, 23%)
HSVhsv(63, 79%, 38%)
CMYKcmyk(4.1%, 0%, 78.6%, 61.6%)
CIE-LABlab(39.86, -11.89, 40.36)
CIE-LCHlch(39.86, 42.08, 106.42°)
OKLaboklab(47.75% -0.0369 0.0889)
OKLCHoklch(47.75% 0.096 112.5)
XYZxyz(9.1194, 11.1694, 2.3848)
Luminance0.1117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6215 #191562
analogous
#623F15 #5E6215 #376215
triadic
#5E6215 #155E62 #62155E
tetradic
#5E6215 #15623F #191562 #621537
square
#5E6215 #15623F #191562 #621537
split-complementary
#5E6215 #153762 #3F1562
monochromatic
#181905 #2E300A #5E6215 #8E9420 #BFC72B

Accessibility & contrast

On white

6.49
#5E6215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5E6215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6215
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6215#FFFFFF#000000##FFFFFF
##5E62151.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D05
Deuteranopia (green-blind)
#6A5F1B
Tritanopia (blue-blind)
#655C53
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e6215;
/* rgb */ color: rgb(94, 98, 21);
/* oklch */ color: oklch(47.8% 0.096 112.5);
Tailwind
colors: {
  custom: {
    50: '#8e8e59',
    500: '#5e6215',
    950: '#000000',
  },
}
SCSS
$custom: #5e6215;
$custom-light: #8e8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6215",
  "rgb": {
    "r": 94,
    "g": 98,
    "b": 21
  },
  "hsl": {
    "h": 63.117,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.47751,
    "c": 0.09627,
    "h": 112.5
  },
  "luminance": 0.11169
}

Semantic roles & 50–950 ramp

primary
#5E6215
secondary
#3F3A99
accent
#40E849
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5E6215

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

Preview Lab → · Contrast checker → · Palette generator →

#5E6215 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva