#8A8B1C#8A8B1C

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

Color values

HEX#8A8B1C
RGBrgb(138, 139, 28)
HSLhsl(61, 66%, 33%)
HSVhsv(61, 80%, 55%)
CMYKcmyk(0.7%, 0%, 79.9%, 45.5%)
CIE-LABlab(56.04, -13.50, 54.19)
CIE-LCHlch(56.04, 55.85, 103.99°)
OKLaboklab(61.64% -0.0432 0.1179)
OKLCHoklch(61.64% 0.126 110.1)
XYZxyz(19.9242, 23.9529, 4.6722)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B1C #1D1C8B
analogous
#8B551C #8A8B1C #528B1C
triadic
#8A8B1C #1C8A8B #8B1C8A
tetradic
#8A8B1C #1C8B55 #1D1C8B #8B1C52
square
#8A8B1C #1C8B55 #1D1C8B #8B1C52
split-complementary
#8A8B1C #1C528B #551C8B
monochromatic
#252507 #575812 #8A8B1C #BDBE26 #D9DA47

Accessibility & contrast

On white

3.63
#8A8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8B1C#FFFFFF#000000##000000
##8A8B1C1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8b1c;
/* rgb */ color: rgb(138, 139, 28);
/* oklch */ color: oklch(61.6% 0.126 110.1);
Tailwind
colors: {
  custom: {
    50: '#b0ac63',
    500: '#8a8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b1c;
$custom-light: #b0ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b1c",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 60.541,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61641,
    "c": 0.12558,
    "h": 110.1
  },
  "luminance": 0.23952
}

Semantic roles & 50–950 ramp

primary
#8A8B1C
secondary
#4847BC
accent
#3EE940
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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