#505A12#505A12

#505A12 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.4% C 0.093 H 117.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#505A12
RGBrgb(80, 90, 18)
HSLhsl(68, 67%, 21%)
HSVhsv(68, 80%, 35%)
CMYKcmyk(11.1%, 0%, 80%, 64.7%)
CIE-LABlab(36.10, -14.26, 37.52)
CIE-LCHlch(36.10, 40.14, 110.81°)
OKLaboklab(44.43% -0.0429 0.0828)
OKLCHoklch(44.43% 0.093 117.4)
XYZxyz(7.0738, 9.0616, 1.9486)
Luminance0.0906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A12 #1C125A
analogous
#5A4012 #505A12 #2C5A12
triadic
#505A12 #12505A #5A1250
tetradic
#505A12 #125A40 #1C125A #5A122C
square
#505A12 #125A40 #1C125A #5A122C
split-complementary
#505A12 #122C5A #40125A
monochromatic
#171A05 #232708 #505A12 #7D8D1C #ABC026

Accessibility & contrast

On white

7.47
#505A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#505A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505A12
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A12#FFFFFF#000000##FFFFFF
##505A121.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#605518
Tritanopia (blue-blind)
#55554C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #505a12;
/* rgb */ color: rgb(80, 90, 18);
/* oklch */ color: oklch(44.4% 0.093 117.4);
Tailwind
colors: {
  custom: {
    50: '#848856',
    500: '#505a12',
    950: '#000000',
  },
}
SCSS
$custom: #505a12;
$custom-light: #848856;
$custom-dark: #000000;
JSON
{
  "hex": "#505a12",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 68.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44428,
    "c": 0.09328,
    "h": 117.4
  },
  "luminance": 0.09061
}

Semantic roles & 50–950 ramp

primary
#505A12
secondary
#423593
accent
#3EEA56
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505A12

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

Preview Lab → · Contrast checker → · Palette generator →

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