#5A641F#5A641F

#5A641F is a mid, moderate yellow. Relative luminance 0.114; OKLCH L 48.0% C 0.093 H 117.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A641F
RGBrgb(90, 100, 31)
HSLhsl(69, 53%, 26%)
HSVhsv(69, 69%, 39%)
CMYKcmyk(10%, 0%, 69%, 60.8%)
CIE-LABlab(40.22, -14.27, 36.41)
CIE-LCHlch(40.22, 39.11, 111.41°)
OKLaboklab(47.98% -0.0422 0.0826)
OKLCHoklch(47.98% 0.093 117.1)
XYZxyz(9.0211, 11.3870, 3.0187)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A641F #291F64
analogous
#644B1F #5A641F #37641F
triadic
#5A641F #1F5A64 #641F5A
tetradic
#5A641F #1F644B #291F64 #641F37
square
#5A641F #1F644B #291F64 #641F37
split-complementary
#5A641F #1F3764 #4B1F64
monochromatic
#151707 #303511 #5A641F #84932D #AEC13C

Accessibility & contrast

On white

6.41
#5A641F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A641F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A641F
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A641F#FFFFFF#000000##FFFFFF
##5A641F1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5F16
Deuteranopia (green-blind)
#6A5F24
Tritanopia (blue-blind)
#605E56
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a641f;
/* rgb */ color: rgb(90, 100, 31);
/* oklch */ color: oklch(48.0% 0.093 117.1);
Tailwind
colors: {
  custom: {
    50: '#8b905f',
    500: '#5a641f',
    950: '#000000',
  },
}
SCSS
$custom: #5a641f;
$custom-light: #8b905f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a641f",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 31
  },
  "hsl": {
    "h": 68.696,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47979,
    "c": 0.09271,
    "h": 117.1
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#5A641F
secondary
#524698
accent
#4CDC61
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C05
muted
#7D7D79

Preview Lab

Preview with #5A641F

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

Preview Lab → · Contrast checker → · Palette generator →

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