#505A0F#505A0F

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

Color values

HEX#505A0F
RGBrgb(80, 90, 15)
HSLhsl(68, 71%, 21%)
HSVhsv(68, 83%, 35%)
CMYKcmyk(11.1%, 0%, 83.3%, 64.7%)
CIE-LABlab(36.09, -14.42, 38.59)
CIE-LCHlch(36.09, 41.20, 110.48°)
OKLaboklab(44.41% -0.0436 0.0845)
OKLCHoklch(44.41% 0.095 117.3)
XYZxyz(7.0508, 9.0524, 1.8277)
Luminance0.0905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A0F #190F5A
analogous
#5A3E0F #505A0F #2A5A0F
triadic
#505A0F #0F505A #5A0F50
tetradic
#505A0F #0F5A3E #190F5A #5A0F2A
square
#505A0F #0F5A3E #190F5A #5A0F2A
split-complementary
#505A0F #0F2A5A #3E0F5A
monochromatic
#171A04 #212606 #505A0F #7F8E18 #ADC320

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505A0F#FFFFFF#000000##FFFFFF
##505A0F1.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)
#615500
Deuteranopia (green-blind)
#605516
Tritanopia (blue-blind)
#56544C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #505a0f;
/* rgb */ color: rgb(80, 90, 15);
/* oklch */ color: oklch(44.4% 0.095 117.3);
Tailwind
colors: {
  custom: {
    50: '#848855',
    500: '#505a0f',
    950: '#000000',
  },
}
SCSS
$custom: #505a0f;
$custom-light: #848855;
$custom-dark: #000000;
JSON
{
  "hex": "#505a0f",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 68,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.44408,
    "c": 0.09511,
    "h": 117.3
  },
  "luminance": 0.09052
}

Semantic roles & 50–950 ramp

primary
#505A0F
secondary
#3E3194
accent
#3AEE52
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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