#8A8F2B#8A8F2B

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

Color values

HEX#8A8F2B
RGBrgb(138, 143, 43)
HSLhsl(63, 54%, 36%)
HSVhsv(63, 70%, 56%)
CMYKcmyk(3.5%, 0%, 69.9%, 43.9%)
CIE-LABlab(57.29, -14.89, 50.00)
CIE-LCHlch(57.29, 52.17, 106.59°)
OKLaboklab(62.67% -0.0457 0.1118)
OKLCHoklch(62.67% 0.121 112.2)
XYZxyz(20.7404, 25.2231, 6.0610)
Luminance0.2522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2B #302B8F
analogous
#8F622B #8A8F2B #588F2B
triadic
#8A8F2B #2B8A8F #8F2B8A
tetradic
#8A8F2B #2B8F62 #302B8F #8F2B58
square
#8A8F2B #2B8F62 #302B8F #8F2B58
split-complementary
#8A8F2B #2B588F #622B8F
monochromatic
#2F310F #5D601D #8A8F2B #B7BE39 #CBD064

Accessibility & contrast

On white

3.47
#8A8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8F2B#FFFFFF#000000##000000
##8A8F2B1.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8f2b;
/* rgb */ color: rgb(138, 143, 43);
/* oklch */ color: oklch(62.7% 0.121 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6b',
    500: '#8a8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2b;
$custom-light: #afaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2b",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 63,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62671,
    "c": 0.12081,
    "h": 112.2
  },
  "luminance": 0.25223
}

Semantic roles & 50–950 ramp

primary
#8A8F2B
secondary
#645FB7
accent
#4BDD52
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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