#8A9F1C#8A9F1C

#8A9F1C is a light, vivid yellow. Relative luminance 0.303; OKLCH L 66.3% C 0.148 H 119.0°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8A9F1C
RGBrgb(138, 159, 28)
HSLhsl(70, 70%, 37%)
HSVhsv(70, 82%, 62%)
CMYKcmyk(13.2%, 0%, 82.4%, 37.6%)
CIE-LABlab(61.90, -23.79, 59.37)
CIE-LCHlch(61.90, 63.96, 111.83°)
OKLaboklab(66.34% -0.0716 0.129)
OKLCHoklch(66.34% 0.148 119)
XYZxyz(23.0895, 30.2836, 5.7273)
Luminance0.3028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F1C #311C9F
analogous
#9F731C #8A9F1C #499F1C
triadic
#8A9F1C #1C8A9F #9F1C8A
tetradic
#8A9F1C #1C9F73 #311C9F #9F1C49
square
#8A9F1C #1C9F73 #311C9F #9F1C49
split-complementary
#8A9F1C #1C499F #731C9F
monochromatic
#30370A #5D6B13 #8A9F1C #B7D325 #CAE154

Accessibility & contrast

On white

2.98
#8A9F1C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#8A9F1C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9F1C
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9F1C#FFFFFF#000000##000000
##8A9F1C1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#A8962A
Tritanopia (blue-blind)
#939688
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a9f1c;
/* rgb */ color: rgb(138, 159, 28);
/* oklch */ color: oklch(66.3% 0.148 119.0);
Tailwind
colors: {
  custom: {
    50: '#b0bb66',
    500: '#8a9f1c',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f1c;
$custom-light: #b0bb66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f1c",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 28
  },
  "hsl": {
    "h": 69.618,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.66343,
    "c": 0.14753,
    "h": 119
  },
  "luminance": 0.30283
}

Semantic roles & 50–950 ramp

primary
#8A9F1C
secondary
#6553C4
accent
#3BED57
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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