#BAB235#BAB235

#BAB235 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.8% C 0.141 H 105.7°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#BAB235
RGBrgb(186, 178, 53)
HSLhsl(56, 56%, 47%)
HSVhsv(56, 72%, 73%)
CMYKcmyk(0%, 4.3%, 71.5%, 27.1%)
CIE-LABlab(71.24, -11.57, 61.28)
CIE-LCHlch(71.24, 62.36, 100.69°)
OKLaboklab(74.81% -0.0381 0.1358)
OKLCHoklch(74.81% 0.141 105.7)
XYZxyz(36.8142, 42.5383, 9.6390)
Luminance0.4254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB235 #353DBA
analogous
#BA7035 #BAB235 #80BA35
triadic
#BAB235 #35BAB2 #B235BA
tetradic
#BAB235 #35BA70 #353DBA #BA3580
square
#BAB235 #35BA70 #353DBA #BA3580
split-complementary
#BAB235 #3580BA #7035BA
monochromatic
#5B571A #8A8427 #BAB235 #D0C95C #DED98B

Accessibility & contrast

On white

2.21
#BAB235 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#BAB235 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB235
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB235#FFFFFF#000000##000000
##BAB2351.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB20
Deuteranopia (green-blind)
#C5B13E
Tritanopia (blue-blind)
#C8A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab235;
/* rgb */ color: rgb(186, 178, 53);
/* oklch */ color: oklch(74.8% 0.141 105.7);
Tailwind
colors: {
  custom: {
    50: '#d2c875',
    500: '#bab235',
    950: '#000000',
  },
}
SCSS
$custom: #bab235;
$custom-light: #d2c875;
$custom-dark: #000000;
JSON
{
  "hex": "#bab235",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 53
  },
  "hsl": {
    "h": 56.391,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.7481,
    "c": 0.14105,
    "h": 105.7
  },
  "luminance": 0.42537
}

Semantic roles & 50–950 ramp

primary
#BAB235
secondary
#8287C8
accent
#52DF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB235

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

Preview Lab → · Contrast checker → · Palette generator →

#BAB235 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva