#5F7526#5F7526

#5F7526 is a mid, moderate yellow-green. Relative luminance 0.153; OKLCH L 52.8% C 0.108 H 123.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5F7526
RGBrgb(95, 117, 38)
HSLhsl(77, 51%, 30%)
HSVhsv(77, 68%, 46%)
CMYKcmyk(18.8%, 0%, 67.5%, 54.1%)
CIE-LABlab(46.04, -20.60, 39.47)
CIE-LCHlch(46.04, 44.52, 117.56°)
OKLaboklab(52.77% -0.0594 0.09)
OKLCHoklch(52.77% 0.108 123.4)
XYZxyz(11.4306, 15.2954, 4.1834)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7526 #3C2675
analogous
#756326 #5F7526 #377526
triadic
#5F7526 #265F75 #75265F
tetradic
#5F7526 #267563 #3C2675 #752637
square
#5F7526 #267563 #3C2675 #752637
split-complementary
#5F7526 #263775 #632675
monochromatic
#141908 #394717 #5F7526 #85A335 #A5C64F

Accessibility & contrast

On white

5.17
#5F7526 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5F7526 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7526
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7526#FFFFFF#000000##FFFFFF
##5F75261.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1C
Deuteranopia (green-blind)
#796D2C
Tritanopia (blue-blind)
#646F65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7526;
/* rgb */ color: rgb(95, 117, 38);
/* oklch */ color: oklch(52.8% 0.108 123.4);
Tailwind
colors: {
  custom: {
    50: '#8f9c65',
    500: '#5f7526',
    950: '#000000',
  },
}
SCSS
$custom: #5f7526;
$custom-light: #8f9c65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7526",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 38
  },
  "hsl": {
    "h": 76.709,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.1078,
    "h": 123.4
  },
  "luminance": 0.15295
}

Semantic roles & 50–950 ramp

primary
#5F7526
secondary
#684FA7
accent
#4DDA75
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0D0E06
muted
#7D7E7A

Preview Lab

Preview with #5F7526

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

Preview Lab → · Contrast checker → · Palette generator →

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