#5A6F12#5A6F12

#5A6F12 is a mid, moderate yellow-green. Relative luminance 0.136; OKLCH L 50.7% C 0.116 H 122.3°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5A6F12
RGBrgb(90, 111, 18)
HSLhsl(74, 72%, 25%)
HSVhsv(74, 84%, 44%)
CMYKcmyk(18.9%, 0%, 83.8%, 56.5%)
CIE-LABlab(43.63, -20.92, 44.73)
CIE-LCHlch(43.63, 49.38, 115.06°)
OKLaboklab(50.7% -0.0618 0.0978)
OKLCHoklch(50.7% 0.116 122.3)
XYZxyz(10.0102, 13.5862, 2.6672)
Luminance0.1359 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6F12 #27126F
analogous
#6F5512 #5A6F12 #2C6F12
triadic
#5A6F12 #125A6F #6F125A
tetradic
#5A6F12 #126F55 #27126F #6F122C
square
#5A6F12 #126F55 #27126F #6F122C
split-complementary
#5A6F12 #122C6F #55126F
monochromatic
#151A04 #2F3A09 #5A6F12 #85A41B #AFD823

Accessibility & contrast

On white

5.65
#5A6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5A6F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6F12
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6F12#FFFFFF#000000##FFFFFF
##5A6F121.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#73671C
Tritanopia (blue-blind)
#5F695E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a6f12;
/* rgb */ color: rgb(90, 111, 18);
/* oklch */ color: oklch(50.7% 0.116 122.3);
Tailwind
colors: {
  custom: {
    50: '#8c985a',
    500: '#5a6f12',
    950: '#000000',
  },
}
SCSS
$custom: #5a6f12;
$custom-light: #8c985a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6f12",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 73.548,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50698,
    "c": 0.11564,
    "h": 122.3
  },
  "luminance": 0.13586
}

Semantic roles & 50–950 ramp

primary
#5A6F12
secondary
#5037A6
accent
#39EF62
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6F12

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

Preview Lab → · Contrast checker → · Palette generator →

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