#BAA238#BAA238

#BAA238 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.4% C 0.126 H 96.2°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#BAA238
RGBrgb(186, 162, 56)
HSLhsl(49, 54%, 47%)
HSVhsv(49, 70%, 73%)
CMYKcmyk(0%, 12.9%, 69.9%, 27.1%)
CIE-LABlab(66.95, -3.01, 55.85)
CIE-LCHlch(66.95, 55.93, 93.08°)
OKLaboklab(71.41% -0.0135 0.1249)
OKLCHoklch(71.41% 0.126 96.2)
XYZxyz(33.8855, 36.5670, 9.0139)
Luminance0.3656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA238 #3850BA
analogous
#BA6138 #BAA238 #91BA38
triadic
#BAA238 #38BAA2 #A238BA
tetradic
#BAA238 #38BA61 #3850BA #BA3891
square
#BAA238 #38BA61 #3850BA #BA3891
split-complementary
#BAA238 #3891BA #6138BA
monochromatic
#5C501C #8B792A #BAA238 #CFBB60 #DDCF8F

Accessibility & contrast

On white

2.53
#BAA238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#BAA238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA238
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA238#FFFFFF#000000##000000
##BAA2381.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B9A63E
Tritanopia (blue-blind)
#C9968C
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #baa238;
/* rgb */ color: rgb(186, 162, 56);
/* oklch */ color: oklch(71.4% 0.126 96.2);
Tailwind
colors: {
  custom: {
    50: '#d2bd75',
    500: '#baa238',
    950: '#000000',
  },
}
SCSS
$custom: #baa238;
$custom-light: #d2bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#baa238",
  "rgb": {
    "r": 186,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 48.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71411,
    "c": 0.12562,
    "h": 96.2
  },
  "luminance": 0.36565
}

Semantic roles & 50–950 ramp

primary
#BAA238
secondary
#8692C8
accent
#66DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #BAA238

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

Preview Lab → · Contrast checker → · Palette generator →

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