#5E6312#5E6312

#5E6312 is a mid, moderate yellow. Relative luminance 0.113; OKLCH L 48.0% C 0.099 H 113.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5E6312
RGBrgb(94, 99, 18)
HSLhsl(64, 69%, 23%)
HSVhsv(64, 82%, 39%)
CMYKcmyk(5.1%, 0%, 81.8%, 61.2%)
CIE-LABlab(40.16, -12.60, 41.71)
CIE-LCHlch(40.16, 43.57, 106.80°)
OKLaboklab(47.98% -0.0391 0.0912)
OKLCHoklch(47.98% 0.099 113.2)
XYZxyz(9.1874, 11.3472, 2.2784)
Luminance0.1135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6312 #171263
analogous
#633F12 #5E6312 #356312
triadic
#5E6312 #125E63 #63125E
tetradic
#5E6312 #12633F #171263 #631235
square
#5E6312 #12633F #171263 #631235
split-complementary
#5E6312 #123563 #3F1263
monochromatic
#191A05 #2D2F09 #5E6312 #8F971B #C0CB25

Accessibility & contrast

On white

6.42
#5E6312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5E6312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6312
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6312#FFFFFF#000000##FFFFFF
##5E63121.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#6B5F19
Tritanopia (blue-blind)
#655D54
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e6312;
/* rgb */ color: rgb(94, 99, 18);
/* oklch */ color: oklch(48.0% 0.099 113.2);
Tailwind
colors: {
  custom: {
    50: '#8f8f58',
    500: '#5e6312',
    950: '#000000',
  },
}
SCSS
$custom: #5e6312;
$custom-light: #8f8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6312",
  "rgb": {
    "r": 94,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 63.704,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.47982,
    "c": 0.09923,
    "h": 113.2
  },
  "luminance": 0.11347
}

Semantic roles & 50–950 ramp

primary
#5E6312
secondary
#3C369B
accent
#3CEC47
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5E6312

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

Preview Lab → · Contrast checker → · Palette generator →

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