#505F0C#505F0C

#505F0C is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.7% C 0.103 H 120.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#505F0C
RGBrgb(80, 95, 12)
HSLhsl(71, 78%, 21%)
HSVhsv(71, 87%, 37%)
CMYKcmyk(15.8%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.69, -17.29, 40.99)
CIE-LCHlch(37.69, 44.48, 112.87°)
OKLaboklab(45.7% -0.0517 0.0891)
OKLCHoklch(45.7% 0.103 120.1)
XYZxyz(7.4670, 9.9165, 1.8685)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F0C #1B0C5F
analogous
#5F440C #505F0C #265F0C
triadic
#505F0C #0C505F #5F0C50
tetradic
#505F0C #0C5F44 #1B0C5F #5F0C26
square
#505F0C #0C5F44 #1B0C5F #5F0C26
split-complementary
#505F0C #0C265F #440C5F
monochromatic
#171B03 #222905 #505F0C #7E9513 #ACCC1A

Accessibility & contrast

On white

7.04
#505F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#505F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505F0C
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505F0C#FFFFFF#000000##FFFFFF
##505F0C1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665900
Deuteranopia (green-blind)
#645915
Tritanopia (blue-blind)
#555950
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f0c;
/* rgb */ color: rgb(80, 95, 12);
/* oklch */ color: oklch(45.7% 0.103 120.1);
Tailwind
colors: {
  custom: {
    50: '#848c54',
    500: '#505f0c',
    950: '#000000',
  },
}
SCSS
$custom: #505f0c;
$custom-light: #848c54;
$custom-dark: #000000;
JSON
{
  "hex": "#505f0c",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 70.843,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45698,
    "c": 0.10297,
    "h": 120.1
  },
  "luminance": 0.09916
}

Semantic roles & 50–950 ramp

primary
#505F0C
secondary
#412D99
accent
#34F456
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #505F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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