#8A8F1C#8A8F1C

#8A8F1C is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.6% C 0.130 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A8F1C
RGBrgb(138, 143, 28)
HSLhsl(63, 67%, 34%)
HSVhsv(63, 80%, 56%)
CMYKcmyk(3.5%, 0%, 80.4%, 43.9%)
CIE-LABlab(57.20, -15.61, 55.23)
CIE-LCHlch(57.20, 57.39, 105.79°)
OKLaboklab(62.57% -0.0491 0.1201)
OKLCHoklch(62.57% 0.13 112.2)
XYZxyz(20.5140, 25.1325, 4.8688)
Luminance0.2513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F1C #211C8F
analogous
#8F5A1C #8A8F1C #508F1C
triadic
#8A8F1C #1C8A8F #8F1C8A
tetradic
#8A8F1C #1C8F5A #211C8F #8F1C50
square
#8A8F1C #1C8F5A #211C8F #8F1C50
split-complementary
#8A8F1C #1C508F #5A1C8F
monochromatic
#272908 #595C12 #8A8F1C #BBC226 #D5DC4A

Accessibility & contrast

On white

3.48
#8A8F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A8F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F1C
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F1C#FFFFFF#000000##000000
##8A8F1C1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9B8B27
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f1c;
/* rgb */ color: rgb(138, 143, 28);
/* oklch */ color: oklch(62.6% 0.130 112.2);
Tailwind
colors: {
  custom: {
    50: '#b0af64',
    500: '#8a8f1c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f1c;
$custom-light: #b0af64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f1c",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 62.609,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.62573,
    "c": 0.12977,
    "h": 112.2
  },
  "luminance": 0.25132
}

Semantic roles & 50–950 ramp

primary
#8A8F1C
secondary
#4E49BE
accent
#3EEA45
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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