#BAAF38#BAAF38

#BAAF38 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.2% C 0.136 H 104.0°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#BAAF38
RGBrgb(186, 175, 56)
HSLhsl(55, 54%, 47%)
HSVhsv(55, 70%, 73%)
CMYKcmyk(0%, 5.9%, 69.9%, 27.1%)
CIE-LABlab(70.45, -9.86, 59.36)
CIE-LCHlch(70.45, 60.18, 99.43°)
OKLaboklab(74.18% -0.033 0.1323)
OKLCHoklch(74.18% 0.136 104)
XYZxyz(36.2950, 41.3860, 9.8171)
Luminance0.4138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAF38 #3843BA
analogous
#BA6E38 #BAAF38 #84BA38
triadic
#BAAF38 #38BAAF #AF38BA
tetradic
#BAAF38 #38BA6E #3843BA #BA3884
square
#BAAF38 #38BA6E #3843BA #BA3884
split-complementary
#BAAF38 #3884BA #6E38BA
monochromatic
#5C561C #8B832A #BAAF38 #CFC660 #DDD78F

Accessibility & contrast

On white

2.26
#BAAF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#BAAF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAF38
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAF38#FFFFFF#000000##000000
##BAAF381.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA926
Deuteranopia (green-blind)
#C2AF40
Tritanopia (blue-blind)
#C8A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #baaf38;
/* rgb */ color: rgb(186, 175, 56);
/* oklch */ color: oklch(74.2% 0.136 104.0);
Tailwind
colors: {
  custom: {
    50: '#d2c676',
    500: '#baaf38',
    950: '#000000',
  },
}
SCSS
$custom: #baaf38;
$custom-light: #d2c676;
$custom-dark: #000000;
JSON
{
  "hex": "#baaf38",
  "rgb": {
    "r": 186,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 54.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.74184,
    "c": 0.13634,
    "h": 104
  },
  "luminance": 0.41385
}

Semantic roles & 50–950 ramp

primary
#BAAF38
secondary
#868BC8
accent
#57DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAAF38

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

Preview Lab → · Contrast checker → · Palette generator →

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