#5A7214#5A7214

#5A7214 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.5% C 0.118 H 123.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A7214
RGBrgb(90, 114, 20)
HSLhsl(75, 70%, 26%)
HSVhsv(75, 82%, 45%)
CMYKcmyk(21.1%, 0%, 82.5%, 55.3%)
CIE-LABlab(44.60, -22.37, 44.98)
CIE-LCHlch(44.60, 50.23, 116.44°)
OKLaboklab(51.48% -0.0656 0.0987)
OKLCHoklch(51.48% 0.118 123.6)
XYZxyz(10.3602, 14.2587, 2.8681)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7214 #2C1472
analogous
#725B14 #5A7214 #2B7214
triadic
#5A7214 #145A72 #72145A
tetradic
#5A7214 #14725B #2C1472 #72142B
square
#5A7214 #14725B #2C1472 #72142B
split-complementary
#5A7214 #142B72 #5B1472
monochromatic
#151A05 #313E0B #5A7214 #83A61D #ACD927

Accessibility & contrast

On white

5.45
#5A7214 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A7214 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7214
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7214#FFFFFF#000000##FFFFFF
##5A72141.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#76691E
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7214;
/* rgb */ color: rgb(90, 114, 20);
/* oklch */ color: oklch(51.5% 0.118 123.6);
Tailwind
colors: {
  custom: {
    50: '#8c9a5b',
    500: '#5a7214',
    950: '#000000',
  },
}
SCSS
$custom: #5a7214;
$custom-light: #8c9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7214",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 20
  },
  "hsl": {
    "h": 75.319,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51484,
    "c": 0.11846,
    "h": 123.6
  },
  "luminance": 0.14259
}

Semantic roles & 50–950 ramp

primary
#5A7214
secondary
#5639A8
accent
#3BED68
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7214

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

Preview Lab → · Contrast checker → · Palette generator →

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