#5A670F#5A670F

#5A670F is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.6% C 0.107 H 118.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5A670F
RGBrgb(90, 103, 15)
HSLhsl(69, 75%, 23%)
HSVhsv(69, 85%, 40%)
CMYKcmyk(12.6%, 0%, 85.4%, 59.6%)
CIE-LABlab(41.07, -16.81, 43.37)
CIE-LCHlch(41.07, 46.51, 111.19°)
OKLaboklab(48.63% -0.0508 0.0943)
OKLCHoklch(48.63% 0.107 118.3)
XYZxyz(9.1531, 11.9087, 2.2683)
Luminance0.1191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A670F #1C0F67
analogous
#67480F #5A670F #2E670F
triadic
#5A670F #0F5A67 #670F5A
tetradic
#5A670F #0F6748 #1C0F67 #670F2E
square
#5A670F #0F6748 #1C0F67 #670F2E
split-complementary
#5A670F #0F2E67 #480F67
monochromatic
#171B04 #2B3207 #5A670F #899C17 #B7D21F

Accessibility & contrast

On white

6.21
#5A670F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5A670F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A670F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A670F#FFFFFF#000000##FFFFFF
##5A670F1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6100
Deuteranopia (green-blind)
#6D6118
Tritanopia (blue-blind)
#606157
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a670f;
/* rgb */ color: rgb(90, 103, 15);
/* oklch */ color: oklch(48.6% 0.107 118.3);
Tailwind
colors: {
  custom: {
    50: '#8c9257',
    500: '#5a670f',
    950: '#000000',
  },
}
SCSS
$custom: #5a670f;
$custom-light: #8c9257;
$custom-dark: #000000;
JSON
{
  "hex": "#5a670f",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 15
  },
  "hsl": {
    "h": 68.864,
    "s": 74.576,
    "l": 23.137
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.1071,
    "h": 118.3
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#5A670F
secondary
#4232A0
accent
#37F152
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D03
muted
#7D7D78

Preview Lab

Preview with #5A670F

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

Preview Lab → · Contrast checker → · Palette generator →

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