#5A681F#5A681F

#5A681F is a mid, moderate yellow-green. Relative luminance 0.122; OKLCH L 49.0% C 0.098 H 119.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5A681F
RGBrgb(90, 104, 31)
HSLhsl(72, 54%, 26%)
HSVhsv(72, 70%, 41%)
CMYKcmyk(13.5%, 0%, 70.2%, 59.2%)
CIE-LABlab(41.49, -16.46, 37.73)
CIE-LCHlch(41.49, 41.16, 113.58°)
OKLaboklab(49% -0.0483 0.0853)
OKLCHoklch(49% 0.098 119.5)
XYZxyz(9.4142, 12.1733, 3.1498)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A681F #2D1F68
analogous
#68521F #5A681F #36681F
triadic
#5A681F #1F5A68 #681F5A
tetradic
#5A681F #1F6852 #2D1F68 #681F36
square
#5A681F #1F6852 #2D1F68 #681F36
split-complementary
#5A681F #1F3668 #521F68
monochromatic
#141807 #313911 #5A681F #83972D #ABC53C

Accessibility & contrast

On white

6.11
#5A681F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A681F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A681F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A681F#FFFFFF#000000##FFFFFF
##5A681F1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6215
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#5F6259
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a681f;
/* rgb */ color: rgb(90, 104, 31);
/* oklch */ color: oklch(49.0% 0.098 119.5);
Tailwind
colors: {
  custom: {
    50: '#8b935f',
    500: '#5a681f',
    950: '#000000',
  },
}
SCSS
$custom: #5a681f;
$custom-light: #8b935f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a681f",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 31
  },
  "hsl": {
    "h": 71.507,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48996,
    "c": 0.09805,
    "h": 119.5
  },
  "luminance": 0.12173
}

Semantic roles & 50–950 ramp

primary
#5A681F
secondary
#57469C
accent
#4ADD67
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D05
muted
#7D7E79

Preview Lab

Preview with #5A681F

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

Preview Lab → · Contrast checker → · Palette generator →

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