#505C12#505C12

#505C12 is a dark, moderate yellow. Relative luminance 0.094; OKLCH L 44.9% C 0.096 H 118.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#505C12
RGBrgb(80, 92, 18)
HSLhsl(70, 67%, 22%)
HSVhsv(70, 80%, 36%)
CMYKcmyk(13%, 0%, 80.4%, 63.9%)
CIE-LABlab(36.75, -15.37, 38.13)
CIE-LCHlch(36.75, 41.11, 111.96°)
OKLaboklab(44.95% -0.0459 0.0841)
OKLCHoklch(44.95% 0.096 118.6)
XYZxyz(7.2448, 9.4035, 2.0055)
Luminance0.0940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505C12 #1E125C
analogous
#5C4312 #505C12 #2B5C12
triadic
#505C12 #12505C #5C1250
tetradic
#505C12 #125C43 #1E125C #5C122B
square
#505C12 #125C43 #1E125C #5C122B
split-complementary
#505C12 #122B5C #43125C
monochromatic
#161A05 #232908 #505C12 #7D8F1C #A9C226

Accessibility & contrast

On white

7.29
#505C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#505C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505C12
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505C12#FFFFFF#000000##FFFFFF
##505C121.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635603
Deuteranopia (green-blind)
#615719
Tritanopia (blue-blind)
#55574E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505c12;
/* rgb */ color: rgb(80, 92, 18);
/* oklch */ color: oklch(44.9% 0.096 118.6);
Tailwind
colors: {
  custom: {
    50: '#848a57',
    500: '#505c12',
    950: '#000000',
  },
}
SCSS
$custom: #505c12;
$custom-light: #848a57;
$custom-dark: #000000;
JSON
{
  "hex": "#505c12",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 69.73,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.44949,
    "c": 0.09586,
    "h": 118.6
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#505C12
secondary
#453594
accent
#3EEA5A
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505C12

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

Preview Lab → · Contrast checker → · Palette generator →

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