#9BA42E#9BA42E

#9BA42E is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.0% C 0.138 H 113.8°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#9BA42E
RGBrgb(155, 164, 46)
HSLhsl(65, 56%, 41%)
HSVhsv(65, 72%, 64%)
CMYKcmyk(5.5%, 0%, 72%, 35.7%)
CIE-LABlab(64.74, -18.16, 56.66)
CIE-LCHlch(64.74, 59.50, 107.77°)
OKLaboklab(68.98% -0.0555 0.1259)
OKLCHoklch(68.98% 0.138 113.8)
XYZxyz(27.2870, 33.7173, 7.6549)
Luminance0.3372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA42E #372EA4
analogous
#A4722E #9BA42E #60A42E
triadic
#9BA42E #2E9BA4 #A42E9B
tetradic
#9BA42E #2EA472 #372EA4 #A42E60
square
#9BA42E #2EA472 #372EA4 #A42E60
split-complementary
#9BA42E #2E60A4 #722EA4
monochromatic
#414413 #6E7421 #9BA42E #C0CB45 #D0D874

Accessibility & contrast

On white

2.71
#9BA42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#9BA42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA42E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA42E#FFFFFF#000000##000000
##9BA42E1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C19
Deuteranopia (green-blind)
#B09E37
Tritanopia (blue-blind)
#A59A8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ba42e;
/* rgb */ color: rgb(155, 164, 46);
/* oklch */ color: oklch(69.0% 0.138 113.8);
Tailwind
colors: {
  custom: {
    50: '#bcbe6f',
    500: '#9ba42e',
    950: '#000000',
  },
}
SCSS
$custom: #9ba42e;
$custom-light: #bcbe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba42e",
  "rgb": {
    "r": 155,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 64.576,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.68978,
    "c": 0.13755,
    "h": 113.8
  },
  "luminance": 0.33717
}

Semantic roles & 50–950 ramp

primary
#9BA42E
secondary
#746EC0
accent
#48DF54
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA42E

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

Preview Lab → · Contrast checker → · Palette generator →

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