#9BA020#9BA020

#9BA020 is a light, vivid yellow. Relative luminance 0.322; OKLCH L 68.0% C 0.141 H 112.0°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#9BA020
RGBrgb(155, 160, 32)
HSLhsl(62, 67%, 38%)
HSVhsv(62, 80%, 63%)
CMYKcmyk(3.1%, 0%, 80%, 37.3%)
CIE-LABlab(63.52, -16.73, 60.18)
CIE-LCHlch(63.52, 62.46, 105.54°)
OKLaboklab(67.98% -0.0527 0.1308)
OKLCHoklch(67.98% 0.141 112)
XYZxyz(26.3500, 32.2151, 6.1963)
Luminance0.3221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA020 #2520A0
analogous
#A06520 #9BA020 #5BA020
triadic
#9BA020 #209BA0 #A0209B
tetradic
#9BA020 #20A065 #2520A0 #A0205B
square
#9BA020 #20A065 #2520A0 #A0205B
split-complementary
#9BA020 #205BA0 #6520A0
monochromatic
#383A0C #6A6D16 #9BA020 #CCD32A #D9DE5C

Accessibility & contrast

On white

2.82
#9BA020 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#9BA020 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA020
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA020#FFFFFF#000000##000000
##9BA0201.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#AD9B2C
Tritanopia (blue-blind)
#A69689
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba020;
/* rgb */ color: rgb(155, 160, 32);
/* oklch */ color: oklch(68.0% 0.141 112.0);
Tailwind
colors: {
  custom: {
    50: '#bcbb68',
    500: '#9ba020',
    950: '#000000',
  },
}
SCSS
$custom: #9ba020;
$custom-light: #bcbb68;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba020",
  "rgb": {
    "r": 155,
    "g": 160,
    "b": 32
  },
  "hsl": {
    "h": 62.344,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.67979,
    "c": 0.14101,
    "h": 112
  },
  "luminance": 0.32214
}

Semantic roles & 50–950 ramp

primary
#9BA020
secondary
#5D59C3
accent
#3EEA45
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9BA020

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

Preview Lab → · Contrast checker → · Palette generator →

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