#B2A040#B2A040

#B2A040 is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.117 H 98.7°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#B2A040
RGBrgb(178, 160, 64)
HSLhsl(51, 47%, 47%)
HSVhsv(51, 64%, 70%)
CMYKcmyk(0%, 10.1%, 64%, 30.2%)
CIE-LABlab(65.73, -4.97, 50.91)
CIE-LCHlch(65.73, 51.16, 95.58°)
OKLaboklab(70.29% -0.0177 0.116)
OKLCHoklch(70.29% 0.117 98.7)
XYZxyz(31.8577, 34.9782, 9.9229)
Luminance0.3498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A040 #4052B2
analogous
#B26740 #B2A040 #8BB240
triadic
#B2A040 #40B2A0 #A040B2
tetradic
#B2A040 #40B267 #4052B2 #B2408B
square
#B2A040 #40B267 #4052B2 #B2408B
split-complementary
#B2A040 #408BB2 #6740B2
monochromatic
#584F20 #857830 #B2A040 #C8B967 #D8CE94

Accessibility & contrast

On white

2.63
#B2A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#B2A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A040
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A040#FFFFFF#000000##000000
##B2A0401.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C35
Deuteranopia (green-blind)
#B4A245
Tritanopia (blue-blind)
#BF958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a040;
/* rgb */ color: rgb(178, 160, 64);
/* oklch */ color: oklch(70.3% 0.117 98.7);
Tailwind
colors: {
  custom: {
    50: '#ccbb79',
    500: '#b2a040',
    950: '#000000',
  },
}
SCSS
$custom: #b2a040;
$custom-light: #ccbb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a040",
  "rgb": {
    "r": 178,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 50.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.7029,
    "c": 0.11734,
    "h": 98.7
  },
  "luminance": 0.34977
}

Semantic roles & 50–950 ramp

primary
#B2A040
secondary
#8A93C4
accent
#66D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #B2A040

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

Preview Lab → · Contrast checker → · Palette generator →

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