#5A620F#5A620F

#5A620F is a mid, moderate yellow. Relative luminance 0.109; OKLCH L 47.4% C 0.101 H 115.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5A620F
RGBrgb(90, 98, 15)
HSLhsl(66, 73%, 22%)
HSVhsv(66, 85%, 38%)
CMYKcmyk(8.2%, 0%, 84.7%, 61.6%)
CIE-LABlab(39.49, -14.08, 41.97)
CIE-LCHlch(39.49, 44.27, 108.55°)
OKLaboklab(47.35% -0.0432 0.0913)
OKLCHoklch(47.35% 0.101 115.3)
XYZxyz(8.6706, 10.9437, 2.1074)
Luminance0.1094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A620F #170F62
analogous
#62410F #5A620F #31620F
triadic
#5A620F #0F5A62 #620F5A
tetradic
#5A620F #0F6241 #170F62 #620F31
square
#5A620F #0F6241 #170F62 #620F31
split-complementary
#5A620F #0F3162 #410F62
monochromatic
#181B04 #292D07 #5A620F #8B9717 #BBCC1F

Accessibility & contrast

On white

6.59
#5A620F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A620F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A620F
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A620F#FFFFFF#000000##FFFFFF
##5A620F1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5C00
Deuteranopia (green-blind)
#695E17
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a620f;
/* rgb */ color: rgb(90, 98, 15);
/* oklch */ color: oklch(47.4% 0.101 115.3);
Tailwind
colors: {
  custom: {
    50: '#8c8e56',
    500: '#5a620f',
    950: '#000000',
  },
}
SCSS
$custom: #5a620f;
$custom-light: #8c8e56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a620f",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 15
  },
  "hsl": {
    "h": 65.783,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.47351,
    "c": 0.10104,
    "h": 115.3
  },
  "luminance": 0.10944
}

Semantic roles & 50–950 ramp

primary
#5A620F
secondary
#3C329B
accent
#38F049
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A620F

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

Preview Lab → · Contrast checker → · Palette generator →

#5A620F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva