#BAAF42#BAAF42

#BAAF42 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.3% C 0.129 H 103.5°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#BAAF42
RGBrgb(186, 175, 66)
HSLhsl(55, 48%, 49%)
HSVhsv(55, 65%, 73%)
CMYKcmyk(0%, 5.9%, 64.5%, 27.1%)
CIE-LABlab(70.52, -9.29, 55.36)
CIE-LCHlch(70.52, 56.14, 99.52°)
OKLaboklab(74.27% -0.0302 0.1255)
OKLCHoklch(74.27% 0.129 103.5)
XYZxyz(36.5644, 41.4938, 11.2363)
Luminance0.4149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAF42 #424DBA
analogous
#BA7342 #BAAF42 #89BA42
triadic
#BAAF42 #42BAAF #AF42BA
tetradic
#BAAF42 #42BA73 #424DBA #BA4289
square
#BAAF42 #42BA73 #424DBA #BA4289
split-complementary
#BAAF42 #4289BA #7342BA
monochromatic
#605A22 #8D8532 #BAAF42 #CBC36E #DBD69B

Accessibility & contrast

On white

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

On black

9.30
#BAAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAF42
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAF42#FFFFFF#000000##000000
##BAAF421.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA934
Deuteranopia (green-blind)
#C2AF48
Tritanopia (blue-blind)
#C7A398
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #baaf42;
/* rgb */ color: rgb(186, 175, 66);
/* oklch */ color: oklch(74.3% 0.129 103.5);
Tailwind
colors: {
  custom: {
    50: '#d2c67c',
    500: '#baaf42',
    950: '#000000',
  },
}
SCSS
$custom: #baaf42;
$custom-light: #d2c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#baaf42",
  "rgb": {
    "r": 186,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 54.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.74268,
    "c": 0.1291,
    "h": 103.5
  },
  "luminance": 0.41492
}

Semantic roles & 50–950 ramp

primary
#BAAF42
secondary
#9095C8
accent
#5DD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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