#8A8F38#8A8F38

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

Color values

HEX#8A8F38
RGBrgb(138, 143, 56)
HSLhsl(63, 44%, 39%)
HSVhsv(63, 61%, 56%)
CMYKcmyk(3.5%, 0%, 60.8%, 43.9%)
CIE-LABlab(57.40, -14.02, 44.48)
CIE-LCHlch(57.40, 46.64, 107.49°)
OKLaboklab(62.79% -0.0418 0.1022)
OKLCHoklch(62.79% 0.11 112.2)
XYZxyz(21.0180, 25.3342, 7.5234)
Luminance0.2533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F38 #3D388F
analogous
#8F6938 #8A8F38 #5F8F38
triadic
#8A8F38 #388A8F #8F388A
tetradic
#8A8F38 #388F69 #3D388F #8F385F
square
#8A8F38 #388F69 #3D388F #8F385F
split-complementary
#8A8F38 #385F8F #69388F
monochromatic
#353716 #606327 #8A8F38 #B2B94B #C5CA77

Accessibility & contrast

On white

3.46
#8A8F38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8A8F38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F38
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F38#FFFFFF#000000##000000
##8A8F381.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99892E
Deuteranopia (green-blind)
#998B3D
Tritanopia (blue-blind)
#93877C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f38;
/* rgb */ color: rgb(138, 143, 56);
/* oklch */ color: oklch(62.8% 0.110 112.2);
Tailwind
colors: {
  custom: {
    50: '#aeaf72',
    500: '#8a8f38',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f38;
$custom-light: #aeaf72;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f38",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 56
  },
  "hsl": {
    "h": 63.448,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.62791,
    "c": 0.11043,
    "h": 112.2
  },
  "luminance": 0.25334
}

Semantic roles & 50–950 ramp

primary
#8A8F38
secondary
#7470B3
accent
#54D35C
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8F38

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

Preview Lab → · Contrast checker → · Palette generator →

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