#9EAC2F#9EAC2F

#9EAC2F is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.1% C 0.145 H 115.8°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#9EAC2F
RGBrgb(158, 172, 47)
HSLhsl(67, 57%, 43%)
HSVhsv(67, 73%, 67%)
CMYKcmyk(8.1%, 0%, 72.7%, 32.5%)
CIE-LABlab(67.26, -20.87, 58.82)
CIE-LCHlch(67.26, 62.41, 109.53°)
OKLaboklab(71.06% -0.0631 0.1305)
OKLCHoklch(71.06% 0.145 115.8)
XYZxyz(29.3669, 36.9798, 8.2796)
Luminance0.3698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EAC2F #3D2FAC
analogous
#AC7B2F #9EAC2F #5FAC2F
triadic
#9EAC2F #2F9EAC #AC2F9E
tetradic
#9EAC2F #2FAC7B #3D2FAC #AC2F5F
square
#9EAC2F #2FAC7B #3D2FAC #AC2F5F
split-complementary
#9EAC2F #2F5FAC #7B2FAC
monochromatic
#464C15 #727C22 #9EAC2F #BFCE4B #D0DB7B

Accessibility & contrast

On white

2.50
#9EAC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#9EAC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EAC2F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EAC2F#FFFFFF#000000##000000
##9EAC2F1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A317
Deuteranopia (green-blind)
#B7A539
Tritanopia (blue-blind)
#A8A294
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9eac2f;
/* rgb */ color: rgb(158, 172, 47);
/* oklch */ color: oklch(71.1% 0.145 115.8);
Tailwind
colors: {
  custom: {
    50: '#bec470',
    500: '#9eac2f',
    950: '#000000',
  },
}
SCSS
$custom: #9eac2f;
$custom-light: #bec470;
$custom-dark: #000000;
JSON
{
  "hex": "#9eac2f",
  "rgb": {
    "r": 158,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 66.72,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71062,
    "c": 0.14495,
    "h": 115.8
  },
  "luminance": 0.36979
}

Semantic roles & 50–950 ramp

primary
#9EAC2F
secondary
#7D74C3
accent
#47E059
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9EAC2F

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

Preview Lab → · Contrast checker → · Palette generator →

#9EAC2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva