#8A8D1C#8A8D1C

#8A8D1C is a light, vivid yellow. Relative luminance 0.245; OKLCH L 62.1% C 0.128 H 111.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A8D1C
RGBrgb(138, 141, 28)
HSLhsl(62, 67%, 33%)
HSVhsv(62, 80%, 55%)
CMYKcmyk(2.1%, 0%, 80.1%, 44.7%)
CIE-LABlab(56.62, -14.56, 54.71)
CIE-LCHlch(56.62, 56.61, 104.90°)
OKLaboklab(62.11% -0.0461 0.119)
OKLCHoklch(62.11% 0.128 111.2)
XYZxyz(20.2164, 24.5374, 4.7696)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D1C #1F1C8D
analogous
#8D571C #8A8D1C #518D1C
triadic
#8A8D1C #1C8A8D #8D1C8A
tetradic
#8A8D1C #1C8D57 #1F1C8D #8D1C51
square
#8A8D1C #1C8D57 #1F1C8D #8D1C51
split-complementary
#8A8D1C #1C518D #571C8D
monochromatic
#262708 #585A12 #8A8D1C #BCC026 #D7DB49

Accessibility & contrast

On white

3.55
#8A8D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A8D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D1C
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D1C#FFFFFF#000000##000000
##8A8D1C1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#948478
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d1c;
/* rgb */ color: rgb(138, 141, 28);
/* oklch */ color: oklch(62.1% 0.128 111.2);
Tailwind
colors: {
  custom: {
    50: '#b0ae63',
    500: '#8a8d1c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d1c;
$custom-light: #b0ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d1c",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 61.593,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.62106,
    "c": 0.12766,
    "h": 111.2
  },
  "luminance": 0.24537
}

Semantic roles & 50–950 ramp

primary
#8A8D1C
secondary
#4B48BD
accent
#3EEA43
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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