#8A8B25#8A8B25

#8A8B25 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.120 H 110.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A8B25
RGBrgb(138, 139, 37)
HSLhsl(61, 58%, 35%)
HSVhsv(61, 73%, 55%)
CMYKcmyk(0.7%, 0%, 73.4%, 45.5%)
CIE-LABlab(56.09, -13.10, 51.15)
CIE-LCHlch(56.09, 52.80, 104.37°)
OKLaboklab(61.7% -0.0413 0.1132)
OKLCHoklch(61.7% 0.12 110)
XYZxyz(20.0485, 24.0027, 5.3268)
Luminance0.2400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B25 #26258B
analogous
#8B5925 #8A8B25 #578B25
triadic
#8A8B25 #258A8B #8B258A
tetradic
#8A8B25 #258B59 #26258B #8B2557
square
#8A8B25 #258B59 #26258B #8B2557
split-complementary
#8A8B25 #25578B #59258B
monochromatic
#2A2A0B #5A5B18 #8A8B25 #BABB32 #D1D358

Accessibility & contrast

On white

3.62
#8A8B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8A8B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B25
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B25#FFFFFF#000000##000000
##8A8B251.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968512
Deuteranopia (green-blind)
#97882D
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b25;
/* rgb */ color: rgb(138, 139, 37);
/* oklch */ color: oklch(61.7% 0.120 110.0);
Tailwind
colors: {
  custom: {
    50: '#afac67',
    500: '#8a8b25',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b25;
$custom-light: #afac67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b25",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 60.588,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61697,
    "c": 0.12047,
    "h": 110
  },
  "luminance": 0.24002
}

Semantic roles & 50–950 ramp

primary
#8A8B25
secondary
#5655B7
accent
#47E148
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B25

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

Preview Lab → · Contrast checker → · Palette generator →

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