#8A8F2C#8A8F2C

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

Color values

HEX#8A8F2C
RGBrgb(138, 143, 44)
HSLhsl(63, 53%, 37%)
HSVhsv(63, 69%, 56%)
CMYKcmyk(3.5%, 0%, 69.2%, 43.9%)
CIE-LABlab(57.30, -14.84, 49.61)
CIE-LCHlch(57.30, 51.78, 106.65°)
OKLaboklab(62.68% -0.0454 0.1112)
OKLCHoklch(62.68% 0.12 112.2)
XYZxyz(20.7589, 25.2305, 6.1588)
Luminance0.2523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2C #312C8F
analogous
#8F632C #8A8F2C #598F2C
triadic
#8A8F2C #2C8A8F #8F2C8A
tetradic
#8A8F2C #2C8F63 #312C8F #8F2C59
square
#8A8F2C #2C8F63 #312C8F #8F2C59
split-complementary
#8A8F2C #2C598F #632C8F
monochromatic
#30310F #5D601E #8A8F2C #B7BE3A #CAD066

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8F2C#FFFFFF#000000##000000
##8A8F2C1.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)
#9A881D
Deuteranopia (green-blind)
#9A8B33
Tritanopia (blue-blind)
#93867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f2c;
/* rgb */ color: rgb(138, 143, 44);
/* oklch */ color: oklch(62.7% 0.120 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6b',
    500: '#8a8f2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2c;
$custom-light: #afaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2c",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 63.03,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62679,
    "c": 0.12009,
    "h": 112.2
  },
  "luminance": 0.2523
}

Semantic roles & 50–950 ramp

primary
#8A8F2C
secondary
#6561B6
accent
#4BDC53
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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