#BAAF2D#BAAF2D

#BAAF2D is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.1% C 0.143 H 104.4°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#BAAF2D
RGBrgb(186, 175, 45)
HSLhsl(55, 61%, 45%)
HSVhsv(55, 76%, 73%)
CMYKcmyk(0%, 5.9%, 75.8%, 27.1%)
CIE-LABlab(70.38, -10.37, 63.28)
CIE-LCHlch(70.38, 64.12, 99.31°)
OKLaboklab(74.11% -0.0355 0.1386)
OKLCHoklch(74.11% 0.143 104.4)
XYZxyz(36.0549, 41.2900, 8.5527)
Luminance0.4129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAF2D #2D38BA
analogous
#BA682D #BAAF2D #7FBA2D
triadic
#BAAF2D #2DBAAF #AF2DBA
tetradic
#BAAF2D #2DBA68 #2D38BA #BA2D7F
square
#BAAF2D #2DBA68 #2D38BA #BA2D7F
split-complementary
#BAAF2D #2D7FBA #682DBA
monochromatic
#575215 #898121 #BAAF2D #D5CA50 #E0D981

Accessibility & contrast

On white

2.27
#BAAF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#BAAF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAF2D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAF2D#FFFFFF#000000##000000
##BAAF2D1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA910
Deuteranopia (green-blind)
#C3AF37
Tritanopia (blue-blind)
#C8A396
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #baaf2d;
/* rgb */ color: rgb(186, 175, 45);
/* oklch */ color: oklch(74.1% 0.143 104.4);
Tailwind
colors: {
  custom: {
    50: '#d3c670',
    500: '#baaf2d',
    950: '#000000',
  },
}
SCSS
$custom: #baaf2d;
$custom-light: #d3c670;
$custom-dark: #000000;
JSON
{
  "hex": "#baaf2d",
  "rgb": {
    "r": 186,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 55.319,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74109,
    "c": 0.14304,
    "h": 104.4
  },
  "luminance": 0.41289
}

Semantic roles & 50–950 ramp

primary
#BAAF2D
secondary
#7980C9
accent
#50E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAAF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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