#5A760F#5A760F

#5A760F is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.5% C 0.126 H 124.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A760F
RGBrgb(90, 118, 15)
HSLhsl(76, 77%, 26%)
HSVhsv(76, 87%, 46%)
CMYKcmyk(23.7%, 0%, 87.3%, 53.7%)
CIE-LABlab(45.86, -24.60, 47.54)
CIE-LCHlch(45.86, 53.53, 117.36°)
OKLaboklab(52.5% -0.072 0.1032)
OKLCHoklch(52.5% 0.126 124.9)
XYZxyz(10.7812, 15.1649, 2.8110)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A760F #2B0F76
analogous
#765E0F #5A760F #26760F
triadic
#5A760F #0F5A76 #760F5A
tetradic
#5A760F #0F765E #2B0F76 #760F26
square
#5A760F #0F765E #2B0F76 #760F26
split-complementary
#5A760F #0F2676 #5E0F76
monochromatic
#151B03 #314008 #5A760F #83AC16 #ADE21D

Accessibility & contrast

On white

5.21
#5A760F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A760F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A760F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A760F#FFFFFF#000000##FFFFFF
##5A760F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#796C1B
Tritanopia (blue-blind)
#5F7064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a760f;
/* rgb */ color: rgb(90, 118, 15);
/* oklch */ color: oklch(52.5% 0.126 124.9);
Tailwind
colors: {
  custom: {
    50: '#8c9d5a',
    500: '#5a760f',
    950: '#000000',
  },
}
SCSS
$custom: #5a760f;
$custom-light: #8c9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a760f",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 15
  },
  "hsl": {
    "h": 76.311,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.52495,
    "c": 0.12586,
    "h": 124.9
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#5A760F
secondary
#5533AD
accent
#34F468
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A760F

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

Preview Lab → · Contrast checker → · Palette generator →

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