#8A8F1F#8A8F1F

#8A8F1F is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.6% C 0.128 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A8F1F
RGBrgb(138, 143, 31)
HSLhsl(63, 64%, 34%)
HSVhsv(63, 78%, 56%)
CMYKcmyk(3.5%, 0%, 78.3%, 43.9%)
CIE-LABlab(57.22, -15.49, 54.30)
CIE-LCHlch(57.22, 56.47, 105.93°)
OKLaboklab(62.59% -0.0485 0.1187)
OKLCHoklch(62.59% 0.128 112.2)
XYZxyz(20.5517, 25.1476, 5.0674)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F1F #241F8F
analogous
#8F5C1F #8A8F1F #528F1F
triadic
#8A8F1F #1F8A8F #8F1F8A
tetradic
#8A8F1F #1F8F5C #241F8F #8F1F52
square
#8A8F1F #1F8F5C #241F8F #8F1F52
split-complementary
#8A8F1F #1F528F #5C1F8F
monochromatic
#292A09 #595D14 #8A8F1F #BBC12A #D3D94F

Accessibility & contrast

On white

3.48
#8A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F1F
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F1F#FFFFFF#000000##000000
##8A8F1F1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#9B8B29
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f1f;
/* rgb */ color: rgb(138, 143, 31);
/* oklch */ color: oklch(62.6% 0.128 112.2);
Tailwind
colors: {
  custom: {
    50: '#b0af65',
    500: '#8a8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f1f;
$custom-light: #b0af65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f1f",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 62.679,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62589,
    "c": 0.12825,
    "h": 112.2
  },
  "luminance": 0.25147
}

Semantic roles & 50–950 ramp

primary
#8A8F1F
secondary
#534EBC
accent
#40E748
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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