#5A751B#5A751B

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

Color values

HEX#5A751B
RGBrgb(90, 117, 27)
HSLhsl(78, 63%, 28%)
HSVhsv(78, 77%, 46%)
CMYKcmyk(23.1%, 0%, 76.9%, 54.1%)
CIE-LABlab(45.60, -23.52, 43.48)
CIE-LCHlch(45.60, 49.43, 118.42°)
OKLaboklab(52.31% -0.0681 0.0967)
OKLCHoklch(52.31% 0.118 125.2)
XYZxyz(10.7757, 14.9752, 3.3595)
Luminance0.1497 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A751B #361B75
analogous
#75631B #5A751B #2D751B
triadic
#5A751B #1B5A75 #751B5A
tetradic
#5A751B #1B7563 #361B75 #751B2D
square
#5A751B #1B7563 #361B75 #751B2D
split-complementary
#5A751B #1B2D75 #631B75
monochromatic
#131906 #344310 #5A751B #80A726 #A4D139

Accessibility & contrast

On white

5.26
#5A751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A751B
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A751B#FFFFFF#000000##FFFFFF
##5A751B1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a751b;
/* rgb */ color: rgb(90, 117, 27);
/* oklch */ color: oklch(52.3% 0.118 125.2);
Tailwind
colors: {
  custom: {
    50: '#8c9d5f',
    500: '#5a751b',
    950: '#000000',
  },
}
SCSS
$custom: #5a751b;
$custom-light: #8c9d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a751b",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 78,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52305,
    "c": 0.11833,
    "h": 125.2
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

primary
#5A751B
secondary
#6142A9
accent
#42E673
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A751B

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

Preview Lab → · Contrast checker → · Palette generator →

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