#9BA227#9BA227

#9BA227 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.5% C 0.140 H 112.9°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#9BA227
RGBrgb(155, 162, 39)
HSLhsl(63, 61%, 39%)
HSVhsv(63, 76%, 64%)
CMYKcmyk(4.3%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.13, -17.48, 58.53)
CIE-LCHlch(64.13, 61.09, 106.63°)
OKLaboklab(68.47% -0.0542 0.1286)
OKLCHoklch(68.47% 0.14 112.9)
XYZxyz(26.8050, 32.9563, 6.8682)
Luminance0.3296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA227 #2E27A2
analogous
#A26C27 #9BA227 #5DA227
triadic
#9BA227 #279BA2 #A2279B
tetradic
#9BA227 #27A26C #2E27A2 #A2275D
square
#9BA227 #27A26C #2E27A2 #A2275D
split-complementary
#9BA227 #275DA2 #6C27A2
monochromatic
#3D3F0F #6C711B #9BA227 #C6CF37 #D4DB69

Accessibility & contrast

On white

2.77
#9BA227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#9BA227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA227
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA227#FFFFFF#000000##000000
##9BA2271.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A09
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba227;
/* rgb */ color: rgb(155, 162, 39);
/* oklch */ color: oklch(68.5% 0.140 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6b',
    500: '#9ba227',
    950: '#000000',
  },
}
SCSS
$custom: #9ba227;
$custom-light: #bcbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba227",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 63.415,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68475,
    "c": 0.13954,
    "h": 112.9
  },
  "luminance": 0.32956
}

Semantic roles & 50–950 ramp

primary
#9BA227
secondary
#6964C1
accent
#43E44D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA227

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

Preview Lab → · Contrast checker → · Palette generator →

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