#9BA527#9BA527

#9BA527 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.2% C 0.143 H 114.2°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#9BA527
RGBrgb(155, 165, 39)
HSLhsl(65, 62%, 40%)
HSVhsv(65, 76%, 65%)
CMYKcmyk(6.1%, 0%, 76.4%, 35.3%)
CIE-LABlab(64.98, -19.01, 59.33)
CIE-LCHlch(64.98, 62.30, 107.77°)
OKLaboklab(69.16% -0.0585 0.1303)
OKLCHoklch(69.16% 0.143 114.2)
XYZxyz(27.3397, 34.0259, 7.0465)
Luminance0.3402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA527 #3127A5
analogous
#A57027 #9BA527 #5CA527
triadic
#9BA527 #279BA5 #A5279B
tetradic
#9BA527 #27A570 #3127A5 #A5275C
square
#9BA527 #27A570 #3127A5 #A5275C
split-complementary
#9BA527 #275CA5 #7027A5
monochromatic
#3E4210 #6D741B #9BA527 #C4D039 #D3DC6A

Accessibility & contrast

On white

2.69
#9BA527 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#9BA527 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA527
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA527#FFFFFF#000000##000000
##9BA5271.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D06
Deuteranopia (green-blind)
#B19F32
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba527;
/* rgb */ color: rgb(155, 165, 39);
/* oklch */ color: oklch(69.2% 0.143 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf6c',
    500: '#9ba527',
    950: '#000000',
  },
}
SCSS
$custom: #9ba527;
$custom-light: #bcbf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba527",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 39
  },
  "hsl": {
    "h": 64.762,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.69162,
    "c": 0.14277,
    "h": 114.2
  },
  "luminance": 0.34025
}

Semantic roles & 50–950 ramp

primary
#9BA527
secondary
#6D66C2
accent
#43E550
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA527

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

Preview Lab → · Contrast checker → · Palette generator →

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