#BAAF40#BAAF40

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

Color values

HEX#BAAF40
RGBrgb(186, 175, 64)
HSLhsl(55, 49%, 49%)
HSVhsv(55, 66%, 73%)
CMYKcmyk(0%, 5.9%, 65.6%, 27.1%)
CIE-LABlab(70.50, -9.41, 56.19)
CIE-LCHlch(70.50, 56.97, 99.51°)
OKLaboklab(74.25% -0.0308 0.127)
OKLCHoklch(74.25% 0.131 103.6)
XYZxyz(36.5065, 41.4706, 10.9311)
Luminance0.4147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAF40 #404BBA
analogous
#BA7240 #BAAF40 #88BA40
triadic
#BAAF40 #40BAAF #AF40BA
tetradic
#BAAF40 #40BA72 #404BBA #BA4088
square
#BAAF40 #40BA72 #404BBA #BA4088
split-complementary
#BAAF40 #4088BA #7240BA
monochromatic
#5F5921 #8C8430 #BAAF40 #CCC36B #DCD699

Accessibility & contrast

On white

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

On black

9.29
#BAAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAF40
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAF40#FFFFFF#000000##000000
##BAAF401.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA932
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#C8A398
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #baaf40;
/* rgb */ color: rgb(186, 175, 64);
/* oklch */ color: oklch(74.3% 0.131 103.6);
Tailwind
colors: {
  custom: {
    50: '#d2c67a',
    500: '#baaf40',
    950: '#000000',
  },
}
SCSS
$custom: #baaf40;
$custom-light: #d2c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#baaf40",
  "rgb": {
    "r": 186,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 54.59,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.7425,
    "c": 0.13064,
    "h": 103.6
  },
  "luminance": 0.41469
}

Semantic roles & 50–950 ramp

primary
#BAAF40
secondary
#8E93C8
accent
#5CD84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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