#8A7018#8A7018

#8A7018 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.5% C 0.105 H 91.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A7018
RGBrgb(138, 112, 24)
HSLhsl(46, 70%, 32%)
HSVhsv(46, 83%, 54%)
CMYKcmyk(0%, 18.8%, 82.6%, 45.9%)
CIE-LABlab(48.33, 1.29, 48.62)
CIE-LCHlch(48.33, 48.64, 88.48°)
OKLaboklab(55.51% -0.002 0.1051)
OKLCHoklch(55.51% 0.105 91.1)
XYZxyz(16.4413, 17.0586, 3.2906)
Luminance0.1706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7018 #18328A
analogous
#8A3718 #8A7018 #6B8A18
triadic
#8A7018 #188A70 #70188A
tetradic
#8A7018 #188A37 #18328A #8A186B
square
#8A7018 #188A37 #18328A #8A186B
split-complementary
#8A7018 #186B8A #37188A
monochromatic
#221B06 #56460F #8A7018 #BE9A21 #DEB93F

Accessibility & contrast

On white

4.76
#8A7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7018
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7018#FFFFFF#000000##FFFFFF
##8A70181.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E03
Deuteranopia (green-blind)
#84761E
Tritanopia (blue-blind)
#966660
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a7018;
/* rgb */ color: rgb(138, 112, 24);
/* oklch */ color: oklch(55.5% 0.105 91.1);
Tailwind
colors: {
  custom: {
    50: '#b0985e',
    500: '#8a7018',
    950: '#000000',
  },
}
SCSS
$custom: #8a7018;
$custom-light: #b0985e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7018",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 46.316,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55513,
    "c": 0.10515,
    "h": 91.1
  },
  "luminance": 0.17058
}

Semantic roles & 50–950 ramp

primary
#8A7018
secondary
#405DBD
accent
#63ED3B
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#110D05
muted
#807E79

Preview Lab

Preview with #8A7018

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

Preview Lab → · Contrast checker → · Palette generator →

#8A7018 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva