#5B6A12#5B6A12

#5B6A12 is a mid, moderate yellow-green. Relative luminance 0.126; OKLCH L 49.5% C 0.109 H 119.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5B6A12
RGBrgb(91, 106, 18)
HSLhsl(70, 71%, 24%)
HSVhsv(70, 83%, 42%)
CMYKcmyk(14.2%, 0%, 83%, 58.4%)
CIE-LABlab(42.12, -17.83, 43.40)
CIE-LCHlch(42.12, 46.92, 112.34°)
OKLaboklab(49.49% -0.0534 0.0949)
OKLCHoklch(49.49% 0.109 119.4)
XYZxyz(9.5778, 12.5759, 2.4950)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6A12 #21126A
analogous
#6A4D12 #5B6A12 #2F6A12
triadic
#5B6A12 #125B6A #6A125B
tetradic
#5B6A12 #126A4D #21126A #6A122F
square
#5B6A12 #126A4D #21126A #6A122F
split-complementary
#5B6A12 #122F6A #4D126A
monochromatic
#161A04 #2E3609 #5B6A12 #889E1B #B5D324

Accessibility & contrast

On white

5.97
#5B6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5B6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6A12
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6A12#FFFFFF#000000##FFFFFF
##5B6A121.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#70641B
Tritanopia (blue-blind)
#61645A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b6a12;
/* rgb */ color: rgb(91, 106, 18);
/* oklch */ color: oklch(49.5% 0.109 119.4);
Tailwind
colors: {
  custom: {
    50: '#8c9459',
    500: '#5b6a12',
    950: '#000000',
  },
}
SCSS
$custom: #5b6a12;
$custom-light: #8c9459;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6a12",
  "rgb": {
    "r": 91,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 70.227,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.49493,
    "c": 0.10888,
    "h": 119.4
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

primary
#5B6A12
secondary
#4936A2
accent
#3AEE59
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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