#8A8F2A#8A8F2A

#8A8F2A is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.7% C 0.122 H 112.2°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A8F2A
RGBrgb(138, 143, 42)
HSLhsl(63, 55%, 36%)
HSVhsv(63, 71%, 56%)
CMYKcmyk(3.5%, 0%, 70.6%, 43.9%)
CIE-LABlab(57.29, -14.95, 50.39)
CIE-LCHlch(57.29, 52.56, 106.53°)
OKLaboklab(62.66% -0.0459 0.1125)
OKLCHoklch(62.66% 0.122 112.2)
XYZxyz(20.7222, 25.2158, 5.9656)
Luminance0.2521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2A #2F2A8F
analogous
#8F622A #8A8F2A #588F2A
triadic
#8A8F2A #2A8A8F #8F2A8A
tetradic
#8A8F2A #2A8F62 #2F2A8F #8F2A58
square
#8A8F2A #2A8F62 #2F2A8F #8F2A58
split-complementary
#8A8F2A #2A588F #622A8F
monochromatic
#2F300E #5C601C #8A8F2A #B8BE38 #CCD162

Accessibility & contrast

On white

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

On black

6.04
#8A8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F2A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F2A#FFFFFF#000000##000000
##8A8F2A1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A881A
Deuteranopia (green-blind)
#9A8B31
Tritanopia (blue-blind)
#93867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f2a;
/* rgb */ color: rgb(138, 143, 42);
/* oklch */ color: oklch(62.7% 0.122 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6a',
    500: '#8a8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2a;
$custom-light: #afaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2a",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 62.97,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62663,
    "c": 0.12151,
    "h": 112.2
  },
  "luminance": 0.25215
}

Semantic roles & 50–950 ramp

primary
#8A8F2A
secondary
#625EB7
accent
#4ADE51
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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