#5A640F#5A640F

#5A640F is a mid, moderate yellow. Relative luminance 0.113; OKLCH L 47.9% C 0.103 H 116.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5A640F
RGBrgb(90, 100, 15)
HSLhsl(67, 74%, 23%)
HSVhsv(67, 85%, 39%)
CMYKcmyk(10%, 0%, 85%, 60.8%)
CIE-LABlab(40.12, -15.18, 42.53)
CIE-LCHlch(40.12, 45.15, 109.65°)
OKLaboklab(47.86% -0.0463 0.0925)
OKLCHoklch(47.86% 0.103 116.6)
XYZxyz(8.8601, 11.3226, 2.1706)
Luminance0.1132 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A640F #190F64
analogous
#64440F #5A640F #2F640F
triadic
#5A640F #0F5A64 #640F5A
tetradic
#5A640F #0F6444 #190F64 #640F2F
square
#5A640F #0F6444 #190F64 #640F2F
split-complementary
#5A640F #0F2F64 #440F64
monochromatic
#181B04 #2A2F07 #5A640F #8A9917 #BACE1F

Accessibility & contrast

On white

6.43
#5A640F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5A640F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A640F
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A640F#FFFFFF#000000##FFFFFF
##5A640F1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E00
Deuteranopia (green-blind)
#6B5F18
Tritanopia (blue-blind)
#605E55
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a640f;
/* rgb */ color: rgb(90, 100, 15);
/* oklch */ color: oklch(47.9% 0.103 116.6);
Tailwind
colors: {
  custom: {
    50: '#8c9057',
    500: '#5a640f',
    950: '#000000',
  },
}
SCSS
$custom: #5a640f;
$custom-light: #8c9057;
$custom-dark: #000000;
JSON
{
  "hex": "#5a640f",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 15
  },
  "hsl": {
    "h": 67.059,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.4786,
    "c": 0.10344,
    "h": 116.6
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#5A640F
secondary
#3E329D
accent
#37F14D
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A640F

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

Preview Lab → · Contrast checker → · Palette generator →

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