#5A701F#5A701F

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

Color values

HEX#5A701F
RGBrgb(90, 112, 31)
HSLhsl(76, 57%, 28%)
HSVhsv(76, 72%, 44%)
CMYKcmyk(19.6%, 0%, 72.3%, 56.1%)
CIE-LABlab(44.03, -20.71, 40.33)
CIE-LCHlch(44.03, 45.34, 117.17°)
OKLaboklab(51.05% -0.06 0.0908)
OKLCHoklch(51.05% 0.109 123.5)
XYZxyz(10.2580, 13.8609, 3.4310)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A701F #351F70
analogous
#705D1F #5A701F #32701F
triadic
#5A701F #1F5A70 #701F5A
tetradic
#5A701F #1F705D #351F70 #701F32
square
#5A701F #1F705D #351F70 #701F32
split-complementary
#5A701F #1F3270 #5D1F70
monochromatic
#131807 #334012 #5A701F #81A02C #A4CA3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A701F#FFFFFF#000000##FFFFFF
##5A701F1.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)
#776912
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#5F6A60
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a701f;
/* rgb */ color: rgb(90, 112, 31);
/* oklch */ color: oklch(51.0% 0.109 123.5);
Tailwind
colors: {
  custom: {
    50: '#8b9960',
    500: '#5a701f',
    950: '#000000',
  },
}
SCSS
$custom: #5a701f;
$custom-light: #8b9960;
$custom-dark: #000000;
JSON
{
  "hex": "#5a701f",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 76.296,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.10886,
    "h": 123.5
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#5A701F
secondary
#6047A4
accent
#48E071
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0D05
muted
#7D7E79

Preview Lab

Preview with #5A701F

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

Preview Lab → · Contrast checker → · Palette generator →

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