#8A8A33#8A8A33

#8A8A33 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.109 H 109.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A8A33
RGBrgb(138, 138, 51)
HSLhsl(60, 46%, 37%)
HSVhsv(60, 63%, 54%)
CMYKcmyk(0%, 0%, 63%, 45.9%)
CIE-LABlab(55.91, -11.72, 45.15)
CIE-LCHlch(55.91, 46.65, 104.55°)
OKLaboklab(61.58% -0.0359 0.1029)
OKLCHoklch(61.58% 0.109 109.2)
XYZxyz(20.1679, 23.8198, 6.6666)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A33 #33338A
analogous
#8A5F33 #8A8A33 #5F8A33
triadic
#8A8A33 #338A8A #8A338A
tetradic
#8A8A33 #338A5F #33338A #8A335F
square
#8A8A33 #338A5F #33338A #8A335F
split-complementary
#8A8A33 #335F8A #5F338A
monochromatic
#313112 #5D5D22 #8A8A33 #B7B744 #C9C96E

Accessibility & contrast

On white

3.64
#8A8A33 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8A8A33 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A33
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A33#FFFFFF#000000##000000
##8A8A331.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958428
Deuteranopia (green-blind)
#968738
Tritanopia (blue-blind)
#938278
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a33;
/* rgb */ color: rgb(138, 138, 51);
/* oklch */ color: oklch(61.6% 0.109 109.2);
Tailwind
colors: {
  custom: {
    50: '#afac6f',
    500: '#8a8a33',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a33;
$custom-light: #afac6f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a33",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 51
  },
  "hsl": {
    "h": 60,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61584,
    "c": 0.10898,
    "h": 109.2
  },
  "luminance": 0.23819
}

Semantic roles & 50–950 ramp

primary
#8A8A33
secondary
#6767B1
accent
#52D652
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A33

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

Preview Lab → · Contrast checker → · Palette generator →

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