#8A8C12#8A8C12

#8A8C12 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.8% C 0.131 H 110.7°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A8C12
RGBrgb(138, 140, 18)
HSLhsl(61, 77%, 31%)
HSVhsv(61, 87%, 55%)
CMYKcmyk(1.4%, 0%, 87.1%, 45.1%)
CIE-LABlab(56.29, -14.36, 57.11)
CIE-LCHlch(56.29, 58.88, 104.11°)
OKLaboklab(61.83% -0.0463 0.1224)
OKLCHoklch(61.83% 0.131 110.7)
XYZxyz(19.9693, 24.2037, 4.1920)
Luminance0.2420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C12 #14128C
analogous
#8C5112 #8A8C12 #4D8C12
triadic
#8A8C12 #128A8C #8C128A
tetradic
#8A8C12 #128C51 #14128C #8C124D
square
#8A8C12 #128C51 #14128C #8C124D
split-complementary
#8A8C12 #124D8C #51128C
monochromatic
#1F2004 #55560B #8A8C12 #BFC219 #E2E534

Accessibility & contrast

On white

3.60
#8A8C12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A8C12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C12
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C12#FFFFFF#000000##000000
##8A8C121.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#998820
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c12;
/* rgb */ color: rgb(138, 140, 18);
/* oklch */ color: oklch(61.8% 0.131 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad5f',
    500: '#8a8c12',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c12;
$custom-light: #b0ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c12",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 18
  },
  "hsl": {
    "h": 60.984,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.61829,
    "c": 0.13085,
    "h": 110.7
  },
  "luminance": 0.24203
}

Semantic roles & 50–950 ramp

primary
#8A8C12
secondary
#3C39C0
accent
#34F437
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8C12

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

Preview Lab → · Contrast checker → · Palette generator →

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