#8C941B#8C941B

#8C941B is a light, vivid yellow. Relative luminance 0.268; OKLCH L 63.9% C 0.135 H 113.6°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8C941B
RGBrgb(140, 148, 27)
HSLhsl(64, 69%, 34%)
HSVhsv(64, 82%, 58%)
CMYKcmyk(5.4%, 0%, 81.8%, 42%)
CIE-LABlab(58.82, -17.36, 57.01)
CIE-LCHlch(58.82, 59.60, 106.94°)
OKLaboklab(63.91% -0.0541 0.1237)
OKLCHoklch(63.91% 0.135 113.6)
XYZxyz(21.6037, 26.8349, 5.0783)
Luminance0.2683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C941B #231B94
analogous
#94601B #8C941B #50941B
triadic
#8C941B #1B8C94 #941B8C
tetradic
#8C941B #1B9460 #231B94 #941B50
square
#8C941B #1B9460 #231B94 #941B50
split-complementary
#8C941B #1B5094 #601B94
monochromatic
#2A2C08 #5B6012 #8C941B #BDC824 #D4DE4B

Accessibility & contrast

On white

3.30
#8C941B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#8C941B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C941B
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C941B#FFFFFF#000000##000000
##8C941B1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08C00
Deuteranopia (green-blind)
#9F8F27
Tritanopia (blue-blind)
#968B7E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8c941b;
/* rgb */ color: rgb(140, 148, 27);
/* oklch */ color: oklch(63.9% 0.135 113.6);
Tailwind
colors: {
  custom: {
    50: '#b1b364',
    500: '#8c941b',
    950: '#000000',
  },
}
SCSS
$custom: #8c941b;
$custom-light: #b1b364;
$custom-dark: #000000;
JSON
{
  "hex": "#8c941b",
  "rgb": {
    "r": 140,
    "g": 148,
    "b": 27
  },
  "hsl": {
    "h": 63.967,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.63907,
    "c": 0.13501,
    "h": 113.6
  },
  "luminance": 0.26834
}

Semantic roles & 50–950 ramp

primary
#8C941B
secondary
#524BC0
accent
#3CEC47
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111106
muted
#80807A

Preview Lab

Preview with #8C941B

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

Preview Lab → · Contrast checker → · Palette generator →

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