#8A8F2F#8A8F2F

#8A8F2F is a light, moderate yellow. Relative luminance 0.253; OKLCH L 62.7% C 0.118 H 112.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A8F2F
RGBrgb(138, 143, 47)
HSLhsl(63, 51%, 37%)
HSVhsv(63, 67%, 56%)
CMYKcmyk(3.5%, 0%, 67.1%, 43.9%)
CIE-LABlab(57.32, -14.65, 48.39)
CIE-LCHlch(57.32, 50.56, 106.85°)
OKLaboklab(62.7% -0.0446 0.1091)
OKLCHoklch(62.7% 0.118 112.2)
XYZxyz(20.8174, 25.2539, 6.4666)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2F #342F8F
analogous
#8F642F #8A8F2F #5A8F2F
triadic
#8A8F2F #2F8A8F #8F2F8A
tetradic
#8A8F2F #2F8F64 #342F8F #8F2F5A
square
#8A8F2F #2F8F64 #342F8F #8F2F5A
split-complementary
#8A8F2F #2F5A8F #642F8F
monochromatic
#313311 #5E6120 #8A8F2F #B6BD3E #C9CE6A

Accessibility & contrast

On white

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

On black

6.05
#8A8F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F2F
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F2F#FFFFFF#000000##000000
##8A8F2F1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8f2f;
/* rgb */ color: rgb(138, 143, 47);
/* oklch */ color: oklch(62.7% 0.118 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6d',
    500: '#8a8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2f;
$custom-light: #afaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2f",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 63.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62704,
    "c": 0.11786,
    "h": 112.2
  },
  "luminance": 0.25253
}

Semantic roles & 50–950 ramp

primary
#8A8F2F
secondary
#6965B5
accent
#4EDA55
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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