#8A8E1C#8A8E1C

#8A8E1C is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.3% C 0.129 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E1C
RGBrgb(138, 142, 28)
HSLhsl(62, 67%, 33%)
HSVhsv(62, 80%, 56%)
CMYKcmyk(2.8%, 0%, 80.3%, 44.3%)
CIE-LABlab(56.91, -15.09, 54.97)
CIE-LCHlch(56.91, 57.00, 105.35°)
OKLaboklab(62.34% -0.0476 0.1196)
OKLCHoklch(62.34% 0.129 111.7)
XYZxyz(20.3645, 24.8336, 4.8190)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E1C #201C8E
analogous
#8E591C #8A8E1C #518E1C
triadic
#8A8E1C #1C8A8E #8E1C8A
tetradic
#8A8E1C #1C8E59 #201C8E #8E1C51
square
#8A8E1C #1C8E59 #201C8E #8E1C51
split-complementary
#8A8E1C #1C518E #591C8E
monochromatic
#272808 #585B12 #8A8E1C #BCC126 #D6DB49

Accessibility & contrast

On white

3.52
#8A8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E1C
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E1C#FFFFFF#000000##000000
##8A8E1C1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9A8A27
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e1c;
/* rgb */ color: rgb(138, 142, 28);
/* oklch */ color: oklch(62.3% 0.129 111.7);
Tailwind
colors: {
  custom: {
    50: '#b0ae63',
    500: '#8a8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e1c;
$custom-light: #b0ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e1c",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 62.105,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.62339,
    "c": 0.12872,
    "h": 111.7
  },
  "luminance": 0.24833
}

Semantic roles & 50–950 ramp

primary
#8A8E1C
secondary
#4D49BD
accent
#3EEA44
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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