#5B6F12#5B6F12

#5B6F12 is a mid, moderate yellow-green. Relative luminance 0.136; OKLCH L 50.8% C 0.115 H 121.7°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5B6F12
RGBrgb(91, 111, 18)
HSLhsl(73, 72%, 25%)
HSVhsv(73, 84%, 44%)
CMYKcmyk(18%, 0%, 83.8%, 56.5%)
CIE-LABlab(43.71, -20.47, 44.83)
CIE-LCHlch(43.71, 49.28, 114.54°)
OKLaboklab(50.78% -0.0606 0.0979)
OKLCHoklch(50.78% 0.115 121.7)
XYZxyz(10.1082, 13.6367, 2.6718)
Luminance0.1364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6F12 #26126F
analogous
#6F5412 #5B6F12 #2D6F12
triadic
#5B6F12 #125B6F #6F125B
tetradic
#5B6F12 #126F54 #26126F #6F122D
square
#5B6F12 #126F54 #26126F #6F122D
split-complementary
#5B6F12 #122D6F #54126F
monochromatic
#161A04 #303A09 #5B6F12 #86A41B #B1D823

Accessibility & contrast

On white

5.63
#5B6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5B6F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6F12
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6F12#FFFFFF#000000##FFFFFF
##5B6F121.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#74671C
Tritanopia (blue-blind)
#60695E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b6f12;
/* rgb */ color: rgb(91, 111, 18);
/* oklch */ color: oklch(50.8% 0.115 121.7);
Tailwind
colors: {
  custom: {
    50: '#8d985a',
    500: '#5b6f12',
    950: '#000000',
  },
}
SCSS
$custom: #5b6f12;
$custom-light: #8d985a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6f12",
  "rgb": {
    "r": 91,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 72.903,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50776,
    "c": 0.11516,
    "h": 121.7
  },
  "luminance": 0.13637
}

Semantic roles & 50–950 ramp

primary
#5B6F12
secondary
#4F37A6
accent
#39EF60
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6F12

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

Preview Lab → · Contrast checker → · Palette generator →

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