#8A781B#8A781B

#8A781B is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.3% C 0.109 H 97.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A781B
RGBrgb(138, 120, 27)
HSLhsl(50, 67%, 32%)
HSVhsv(50, 80%, 54%)
CMYKcmyk(0%, 13%, 80.4%, 45.9%)
CIE-LABlab(50.59, -3.14, 49.61)
CIE-LCHlch(50.59, 49.71, 93.62°)
OKLaboklab(57.3% -0.0142 0.1079)
OKLCHoklch(57.3% 0.109 97.5)
XYZxyz(17.3964, 18.9163, 3.7716)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A781B #1B2D8A
analogous
#8A401B #8A781B #658A1B
triadic
#8A781B #1B8A78 #781B8A
tetradic
#8A781B #1B8A40 #1B2D8A #8A1B65
square
#8A781B #1B8A40 #1B2D8A #8A1B65
split-complementary
#8A781B #1B658A #401B8A
monochromatic
#241F07 #574B11 #8A781B #BDA525 #DBC245

Accessibility & contrast

On white

4.39
#8A781B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A781B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A781B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A781B#FFFFFF#000000##000000
##8A781B1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857505
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a781b;
/* rgb */ color: rgb(138, 120, 27);
/* oklch */ color: oklch(57.3% 0.109 97.5);
Tailwind
colors: {
  custom: {
    50: '#b09e60',
    500: '#8a781b',
    950: '#000000',
  },
}
SCSS
$custom: #8a781b;
$custom-light: #b09e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a781b",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 50.27,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.10885,
    "h": 97.5
  },
  "luminance": 0.18915
}

Semantic roles & 50–950 ramp

primary
#8A781B
secondary
#4558BC
accent
#5AEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A781B

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

Preview Lab → · Contrast checker → · Palette generator →

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