#BBA238#BBA238

#BBA238 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.5% C 0.126 H 95.6°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#BBA238
RGBrgb(187, 162, 56)
HSLhsl(49, 54%, 48%)
HSVhsv(49, 70%, 73%)
CMYKcmyk(0%, 13.4%, 70.1%, 26.7%)
CIE-LABlab(67.05, -2.57, 55.98)
CIE-LCHlch(67.05, 56.04, 92.63°)
OKLaboklab(71.51% -0.0123 0.1251)
OKLCHoklch(71.51% 0.126 95.6)
XYZxyz(34.1293, 36.6928, 9.0253)
Luminance0.3669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBA238 #3851BB
analogous
#BB6138 #BBA238 #92BB38
triadic
#BBA238 #38BBA2 #A238BB
tetradic
#BBA238 #38BB61 #3851BB #BB3892
square
#BBA238 #38BB61 #3851BB #BB3892
split-complementary
#BBA238 #3892BB #6138BB
monochromatic
#5D501C #8C792A #BBA238 #D0BA61 #DECF90

Accessibility & contrast

On white

2.52
#BBA238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#BBA238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBA238
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBA238#FFFFFF#000000##000000
##BBA2381.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F29
Deuteranopia (green-blind)
#B9A73E
Tritanopia (blue-blind)
#CA968C
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #bba238;
/* rgb */ color: rgb(187, 162, 56);
/* oklch */ color: oklch(71.5% 0.126 95.6);
Tailwind
colors: {
  custom: {
    50: '#d3bd75',
    500: '#bba238',
    950: '#000000',
  },
}
SCSS
$custom: #bba238;
$custom-light: #d3bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#bba238",
  "rgb": {
    "r": 187,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 48.55,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71509,
    "c": 0.12572,
    "h": 95.6
  },
  "luminance": 0.36691
}

Semantic roles & 50–950 ramp

primary
#BBA238
secondary
#8693C8
accent
#67DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #BBA238

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

Preview Lab → · Contrast checker → · Palette generator →

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