#5A7010#5A7010

#5A7010 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 50.9% C 0.118 H 122.6°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5A7010
RGBrgb(90, 112, 16)
HSLhsl(74, 75%, 25%)
HSVhsv(74, 86%, 44%)
CMYKcmyk(19.6%, 0%, 85.7%, 56.1%)
CIE-LABlab(43.94, -21.52, 45.60)
CIE-LCHlch(43.94, 50.42, 115.26°)
OKLaboklab(50.95% -0.0635 0.0993)
OKLCHoklch(50.95% 0.118 122.6)
XYZxyz(10.1043, 13.7994, 2.6213)
Luminance0.1380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7010 #261070
analogous
#705610 #5A7010 #2A7010
triadic
#5A7010 #105A70 #70105A
tetradic
#5A7010 #107056 #261070 #70102A
square
#5A7010 #107056 #261070 #70102A
split-complementary
#5A7010 #102A70 #561070
monochromatic
#161B04 #2F3A08 #5A7010 #85A618 #B0DB1F

Accessibility & contrast

On white

5.59
#5A7010 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A7010 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7010
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7010#FFFFFF#000000##FFFFFF
##5A70101.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#74681B
Tritanopia (blue-blind)
#5F6A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a7010;
/* rgb */ color: rgb(90, 112, 16);
/* oklch */ color: oklch(50.9% 0.118 122.6);
Tailwind
colors: {
  custom: {
    50: '#8c9959',
    500: '#5a7010',
    950: '#000000',
  },
}
SCSS
$custom: #5a7010;
$custom-light: #8c9959;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7010",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 16
  },
  "hsl": {
    "h": 73.75,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.50946,
    "c": 0.11786,
    "h": 122.6
  },
  "luminance": 0.13799
}

Semantic roles & 50–950 ramp

primary
#5A7010
secondary
#4F34A8
accent
#36F261
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A7010

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

Preview Lab → · Contrast checker → · Palette generator →

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