#5E6917#5E6917

#5E6917 is a mid, moderate yellow. Relative luminance 0.125; OKLCH L 49.5% C 0.103 H 117.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5E6917
RGBrgb(94, 105, 23)
HSLhsl(68, 64%, 25%)
HSVhsv(68, 78%, 41%)
CMYKcmyk(10.5%, 0%, 78.1%, 58.8%)
CIE-LABlab(42.07, -15.66, 41.69)
CIE-LCHlch(42.07, 44.54, 110.59°)
OKLaboklab(49.52% -0.0471 0.0921)
OKLCHoklch(49.52% 0.103 117.1)
XYZxyz(9.8226, 12.5448, 2.7144)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6917 #221769
analogous
#694B17 #5E6917 #356917
triadic
#5E6917 #175E69 #69175E
tetradic
#5E6917 #17694B #221769 #691735
square
#5E6917 #17694B #221769 #691735
split-complementary
#5E6917 #173569 #4B1769
monochromatic
#161905 #31370C #5E6917 #8B9B22 #B8CD2D

Accessibility & contrast

On white

5.98
#5E6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5E6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6917
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6917#FFFFFF#000000##FFFFFF
##5E69171.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716306
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#646359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5e6917;
/* rgb */ color: rgb(94, 105, 23);
/* oklch */ color: oklch(49.5% 0.103 117.1);
Tailwind
colors: {
  custom: {
    50: '#8e935b',
    500: '#5e6917',
    950: '#000000',
  },
}
SCSS
$custom: #5e6917;
$custom-light: #8e935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6917",
  "rgb": {
    "r": 94,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 68.049,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49524,
    "c": 0.10349,
    "h": 117.1
  },
  "luminance": 0.12545
}

Semantic roles & 50–950 ramp

primary
#5E6917
secondary
#4A3D9F
accent
#41E757
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5E6917

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

Preview Lab → · Contrast checker → · Palette generator →

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