#8A8B1F#8A8B1F

#8A8B1F is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.124 H 110.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A8B1F
RGBrgb(138, 139, 31)
HSLhsl(61, 64%, 33%)
HSVhsv(61, 78%, 55%)
CMYKcmyk(0.7%, 0%, 77.7%, 45.5%)
CIE-LABlab(56.06, -13.38, 53.24)
CIE-LCHlch(56.06, 54.89, 104.11°)
OKLaboklab(61.66% -0.0426 0.1165)
OKLCHoklch(61.66% 0.124 110.1)
XYZxyz(19.9619, 23.9680, 4.8708)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B1F #201F8B
analogous
#8B561F #8A8B1F #548B1F
triadic
#8A8B1F #1F8A8B #8B1F8A
tetradic
#8A8B1F #1F8B56 #201F8B #8B1F54
square
#8A8B1F #1F8B56 #201F8B #8B1F54
split-complementary
#8A8B1F #1F548B #561F8B
monochromatic
#272709 #585914 #8A8B1F #BCBD2A #D6D74D

Accessibility & contrast

On white

3.62
#8A8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8A8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B1F
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B1F#FFFFFF#000000##000000
##8A8B1F1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b1f;
/* rgb */ color: rgb(138, 139, 31);
/* oklch */ color: oklch(61.7% 0.124 110.1);
Tailwind
colors: {
  custom: {
    50: '#b0ac64',
    500: '#8a8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b1f;
$custom-light: #b0ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b1f",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 60.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61658,
    "c": 0.12402,
    "h": 110.1
  },
  "luminance": 0.23967
}

Semantic roles & 50–950 ramp

primary
#8A8B1F
secondary
#4D4CBA
accent
#41E743
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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