#5E6A12#5E6A12

#5E6A12 is a mid, moderate yellow. Relative luminance 0.127; OKLCH L 49.7% C 0.108 H 117.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5E6A12
RGBrgb(94, 106, 18)
HSLhsl(68, 71%, 24%)
HSVhsv(68, 83%, 42%)
CMYKcmyk(11.3%, 0%, 83%, 58.4%)
CIE-LABlab(42.36, -16.44, 43.70)
CIE-LCHlch(42.36, 46.69, 110.62°)
OKLaboklab(49.75% -0.0497 0.0954)
OKLCHoklch(49.75% 0.108 117.5)
XYZxyz(9.8796, 12.7315, 2.5091)
Luminance0.1273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6A12 #1E126A
analogous
#6A4A12 #5E6A12 #326A12
triadic
#5E6A12 #125E6A #6A125E
tetradic
#5E6A12 #126A4A #1E126A #6A1232
square
#5E6A12 #126A4A #1E126A #6A1232
split-complementary
#5E6A12 #12326A #4A126A
monochromatic
#171A04 #303609 #5E6A12 #8C9E1B #BBD324

Accessibility & contrast

On white

5.92
#5E6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5E6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6A12
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6A12#FFFFFF#000000##FFFFFF
##5E6A121.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#71641B
Tritanopia (blue-blind)
#64645A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e6a12;
/* rgb */ color: rgb(94, 106, 18);
/* oklch */ color: oklch(49.7% 0.108 117.5);
Tailwind
colors: {
  custom: {
    50: '#8f9459',
    500: '#5e6a12',
    950: '#000000',
  },
}
SCSS
$custom: #5e6a12;
$custom-light: #8f9459;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6a12",
  "rgb": {
    "r": 94,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 68.182,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.49745,
    "c": 0.10761,
    "h": 117.5
  },
  "luminance": 0.12731
}

Semantic roles & 50–950 ramp

primary
#5E6A12
secondary
#4536A2
accent
#3AEE53
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5E6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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