#505F2B#505F2B

#505F2B is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 46.0% C 0.078 H 122.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#505F2B
RGBrgb(80, 95, 43)
HSLhsl(77, 38%, 27%)
HSVhsv(77, 55%, 37%)
CMYKcmyk(15.8%, 0%, 54.7%, 62.7%)
CIE-LABlab(37.96, -14.96, 27.59)
CIE-LCHlch(37.96, 31.38, 118.46°)
OKLaboklab(46% -0.0421 0.0654)
OKLCHoklch(46% 0.078 122.8)
XYZxyz(7.8365, 10.0643, 3.8148)
Luminance0.1006 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F2B #3A2B5F
analogous
#5F542B #505F2B #365F2B
triadic
#505F2B #2B505F #5F2B50
tetradic
#505F2B #2B5F54 #3A2B5F #5F2B36
square
#505F2B #2B5F54 #3A2B5F #5F2B36
split-complementary
#505F2B #2B365F #542B5F
monochromatic
#12150A #2D3518 #505F2B #73893E #96B153

Accessibility & contrast

On white

6.97
#505F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#505F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505F2B
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505F2B#FFFFFF#000000##FFFFFF
##505F2B1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645A26
Deuteranopia (green-blind)
#62592E
Tritanopia (blue-blind)
#545B53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f2b;
/* rgb */ color: rgb(80, 95, 43);
/* oklch */ color: oklch(46.0% 0.078 122.8);
Tailwind
colors: {
  custom: {
    50: '#828c66',
    500: '#505f2b',
    950: '#000000',
  },
}
SCSS
$custom: #505f2b;
$custom-light: #828c66;
$custom-dark: #000000;
JSON
{
  "hex": "#505f2b",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 43
  },
  "hsl": {
    "h": 77.308,
    "s": 37.681,
    "l": 27.059
  },
  "oklch": {
    "l": 0.45997,
    "c": 0.07783,
    "h": 122.8
  },
  "luminance": 0.10064
}

Semantic roles & 50–950 ramp

primary
#505F2B
secondary
#665591
accent
#5ACE7B
background
#F8F8F6
surface
#EFF0EB
border
#CACBC6
text
#0A0C06
muted
#7C7D7A

Preview Lab

Preview with #505F2B

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

Preview Lab → · Contrast checker → · Palette generator →

#505F2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva