#5A751F#5A751F

#5A751F is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.116 H 125.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5A751F
RGBrgb(90, 117, 31)
HSLhsl(79, 58%, 29%)
HSVhsv(79, 74%, 46%)
CMYKcmyk(23.1%, 0%, 73.5%, 54.1%)
CIE-LABlab(45.63, -23.27, 41.94)
CIE-LCHlch(45.63, 47.97, 119.02°)
OKLaboklab(52.34% -0.0671 0.0942)
OKLCHoklch(52.34% 0.116 125.5)
XYZxyz(10.8251, 14.9950, 3.6201)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A751F #3A1F75
analogous
#75651F #5A751F #2F751F
triadic
#5A751F #1F5A75 #751F5A
tetradic
#5A751F #1F7565 #3A1F75 #751F2F
square
#5A751F #1F7565 #3A1F75 #751F2F
split-complementary
#5A751F #1F2F75 #651F75
monochromatic
#131806 #354512 #5A751F #7FA52C #A1CD42

Accessibility & contrast

On white

5.25
#5A751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5A751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A751F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A751F#FFFFFF#000000##FFFFFF
##5A751F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D11
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#5E6F64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a751f;
/* rgb */ color: rgb(90, 117, 31);
/* oklch */ color: oklch(52.3% 0.116 125.5);
Tailwind
colors: {
  custom: {
    50: '#8b9d61',
    500: '#5a751f',
    950: '#000000',
  },
}
SCSS
$custom: #5a751f;
$custom-light: #8b9d61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a751f",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 78.837,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.11564,
    "h": 125.5
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#5A751F
secondary
#6647A9
accent
#46E177
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A751F

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

Preview Lab → · Contrast checker → · Palette generator →

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