#8A7F23#8A7F23

#8A7F23 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.110 H 102.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F23
RGBrgb(138, 127, 35)
HSLhsl(54, 60%, 34%)
HSVhsv(54, 75%, 54%)
CMYKcmyk(0%, 8%, 74.6%, 45.9%)
CIE-LABlab(52.62, -6.68, 48.57)
CIE-LCHlch(52.62, 49.03, 97.83°)
OKLaboklab(58.93% -0.0234 0.1073)
OKLCHoklch(58.93% 0.11 102.3)
XYZxyz(18.3748, 20.7042, 4.6182)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F23 #232E8A
analogous
#8A4C23 #8A7F23 #628A23
triadic
#8A7F23 #238A7F #7F238A
tetradic
#8A7F23 #238A4C #232E8A #8A2362
square
#8A7F23 #238A4C #232E8A #8A2362
split-complementary
#8A7F23 #23628A #4C238A
monochromatic
#28250A #595217 #8A7F23 #BBAC2F #D4C654

Accessibility & contrast

On white

4.09
#8A7F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A7F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F23
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F23#FFFFFF#000000##000000
##8A7F231.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B13
Deuteranopia (green-blind)
#8E8029
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f23;
/* rgb */ color: rgb(138, 127, 35);
/* oklch */ color: oklch(58.9% 0.110 102.3);
Tailwind
colors: {
  custom: {
    50: '#afa365',
    500: '#8a7f23',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f23;
$custom-light: #afa365;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f23",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 53.592,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58931,
    "c": 0.10987,
    "h": 102.3
  },
  "luminance": 0.20703
}

Semantic roles & 50–950 ramp

primary
#8A7F23
secondary
#515CB7
accent
#56E345
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F23

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

Preview Lab → · Contrast checker → · Palette generator →

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