#8A901F#8A901F

#8A901F is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.8% C 0.129 H 112.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A901F
RGBrgb(138, 144, 31)
HSLhsl(63, 65%, 34%)
HSVhsv(63, 78%, 56%)
CMYKcmyk(4.2%, 0%, 78.5%, 43.5%)
CIE-LABlab(57.51, -16.02, 54.56)
CIE-LCHlch(57.51, 56.87, 106.36°)
OKLaboklab(62.82% -0.0499 0.1193)
OKLCHoklch(62.82% 0.129 112.7)
XYZxyz(20.7025, 25.4492, 5.1177)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A901F #251F90
analogous
#905E1F #8A901F #52901F
triadic
#8A901F #1F8A90 #901F8A
tetradic
#8A901F #1F905E #251F90 #901F52
square
#8A901F #1F905E #251F90 #901F52
split-complementary
#8A901F #1F5290 #5E1F90
monochromatic
#292B09 #5A5E14 #8A901F #BAC22A #D2D950

Accessibility & contrast

On white

3.45
#8A901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8A901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A901F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A901F#FFFFFF#000000##000000
##8A901F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#9C8B29
Tritanopia (blue-blind)
#94877B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a901f;
/* rgb */ color: rgb(138, 144, 31);
/* oklch */ color: oklch(62.8% 0.129 112.7);
Tailwind
colors: {
  custom: {
    50: '#b0b065',
    500: '#8a901f',
    950: '#000000',
  },
}
SCSS
$custom: #8a901f;
$custom-light: #b0b065;
$custom-dark: #000000;
JSON
{
  "hex": "#8a901f",
  "rgb": {
    "r": 138,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 63.186,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62822,
    "c": 0.12932,
    "h": 112.7
  },
  "luminance": 0.25449
}

Semantic roles & 50–950 ramp

primary
#8A901F
secondary
#544EBC
accent
#40E849
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A901F

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

Preview Lab → · Contrast checker → · Palette generator →

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