#8A8F2E#8A8F2E

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

Color values

HEX#8A8F2E
RGBrgb(138, 143, 46)
HSLhsl(63, 51%, 37%)
HSVhsv(63, 68%, 56%)
CMYKcmyk(3.5%, 0%, 67.8%, 43.9%)
CIE-LABlab(57.31, -14.71, 48.80)
CIE-LCHlch(57.31, 50.97, 106.78°)
OKLaboklab(62.7% -0.0448 0.1098)
OKLCHoklch(62.7% 0.119 112.2)
XYZxyz(20.7974, 25.2459, 6.3616)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2E #332E8F
analogous
#8F642E #8A8F2E #5A8F2E
triadic
#8A8F2E #2E8A8F #8F2E8A
tetradic
#8A8F2E #2E8F64 #332E8F #8F2E5A
square
#8A8F2E #2E8F64 #332E8F #8F2E5A
split-complementary
#8A8F2E #2E5A8F #642E8F
monochromatic
#313210 #5D611F #8A8F2E #B7BD3D #C9CF69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8F2E#FFFFFF#000000##000000
##8A8F2E1.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)
#9A8820
Deuteranopia (green-blind)
#9A8B35
Tritanopia (blue-blind)
#93867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f2e;
/* rgb */ color: rgb(138, 143, 46);
/* oklch */ color: oklch(62.7% 0.119 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6c',
    500: '#8a8f2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2e;
$custom-light: #afaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2e",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 63.093,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62696,
    "c": 0.11862,
    "h": 112.2
  },
  "luminance": 0.25245
}

Semantic roles & 50–950 ramp

primary
#8A8F2E
secondary
#6763B6
accent
#4DDB54
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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