#8A751B#8A751B

#8A751B is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.6% C 0.107 H 95.1°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A751B
RGBrgb(138, 117, 27)
HSLhsl(49, 67%, 32%)
HSVhsv(49, 80%, 54%)
CMYKcmyk(0%, 15.2%, 80.4%, 45.9%)
CIE-LABlab(49.74, -1.44, 48.85)
CIE-LCHlch(49.74, 48.87, 91.69°)
OKLaboklab(56.63% -0.0094 0.1063)
OKLCHoklch(56.63% 0.107 95.1)
XYZxyz(17.0413, 18.2060, 3.6532)
Luminance0.1820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A751B #1B308A
analogous
#8A3E1B #8A751B #678A1B
triadic
#8A751B #1B8A75 #751B8A
tetradic
#8A751B #1B8A3E #1B308A #8A1B67
square
#8A751B #1B8A3E #1B308A #8A1B67
split-complementary
#8A751B #1B678A #3E1B8A
monochromatic
#241E07 #574A11 #8A751B #BDA025 #DBBE45

Accessibility & contrast

On white

4.52
#8A751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#8A751B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A751B
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A751B#FFFFFF#000000##000000
##8A751B1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#827307
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#966B64
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a751b;
/* rgb */ color: rgb(138, 117, 27);
/* oklch */ color: oklch(56.6% 0.107 95.1);
Tailwind
colors: {
  custom: {
    50: '#b09c60',
    500: '#8a751b',
    950: '#000000',
  },
}
SCSS
$custom: #8a751b;
$custom-light: #b09c60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a751b",
  "rgb": {
    "r": 138,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 48.649,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56633,
    "c": 0.1067,
    "h": 95.1
  },
  "luminance": 0.18205
}

Semantic roles & 50–950 ramp

primary
#8A751B
secondary
#455BBC
accent
#5EEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A751B

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

Preview Lab → · Contrast checker → · Palette generator →

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