#5A701C#5A701C

#5A701C is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 51.0% C 0.111 H 123.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A701C
RGBrgb(90, 112, 28)
HSLhsl(76, 60%, 27%)
HSVhsv(76, 75%, 44%)
CMYKcmyk(19.6%, 0%, 75%, 56.1%)
CIE-LABlab(44.01, -20.90, 41.54)
CIE-LCHlch(44.01, 46.50, 116.71°)
OKLaboklab(51.02% -0.0609 0.0928)
OKLCHoklch(51.02% 0.111 123.3)
XYZxyz(10.2203, 13.8458, 3.2325)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A701C #321C70
analogous
#705C1C #5A701C #30701C
triadic
#5A701C #1C5A70 #701C5A
tetradic
#5A701C #1C705C #321C70 #701C30
square
#5A701C #1C705C #321C70 #701C30
split-complementary
#5A701C #1C3070 #5C1C70
monochromatic
#141806 #333F10 #5A701C #81A128 #A7CD39

Accessibility & contrast

On white

5.57
#5A701C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5A701C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A701C
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A701C#FFFFFF#000000##FFFFFF
##5A701C1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690D
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#5F6A60
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a701c;
/* rgb */ color: rgb(90, 112, 28);
/* oklch */ color: oklch(51.0% 0.111 123.3);
Tailwind
colors: {
  custom: {
    50: '#8b995e',
    500: '#5a701c',
    950: '#000000',
  },
}
SCSS
$custom: #5a701c;
$custom-light: #8b995e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a701c",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 75.714,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51021,
    "c": 0.11101,
    "h": 123.3
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#5A701C
secondary
#5D43A5
accent
#45E36E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D05
muted
#7D7E79

Preview Lab

Preview with #5A701C

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

Preview Lab → · Contrast checker → · Palette generator →

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