#B2A140#B2A140

#B2A140 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.118 H 99.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B2A140
RGBrgb(178, 161, 64)
HSLhsl(51, 47%, 47%)
HSVhsv(51, 64%, 70%)
CMYKcmyk(0%, 9.6%, 64%, 30.2%)
CIE-LABlab(66.00, -5.51, 51.20)
CIE-LCHlch(66.00, 51.50, 96.14°)
OKLaboklab(70.5% -0.0192 0.1166)
OKLCHoklch(70.5% 0.118 99.3)
XYZxyz(32.0317, 35.3263, 9.9809)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A140 #4051B2
analogous
#B26840 #B2A140 #8AB240
triadic
#B2A140 #40B2A1 #A140B2
tetradic
#B2A140 #40B268 #4051B2 #B2408A
square
#B2A140 #40B268 #4051B2 #B2408A
split-complementary
#B2A140 #408AB2 #6840B2
monochromatic
#585020 #857830 #B2A140 #C8BA67 #D8CE94

Accessibility & contrast

On white

2.60
#B2A140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B2A140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A140
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A140#FFFFFF#000000##000000
##B2A1401.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D35
Deuteranopia (green-blind)
#B4A345
Tritanopia (blue-blind)
#BF968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a140;
/* rgb */ color: rgb(178, 161, 64);
/* oklch */ color: oklch(70.5% 0.118 99.3);
Tailwind
colors: {
  custom: {
    50: '#ccbc79',
    500: '#b2a140',
    950: '#000000',
  },
}
SCSS
$custom: #b2a140;
$custom-light: #ccbc79;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a140",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 64
  },
  "hsl": {
    "h": 51.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70504,
    "c": 0.11819,
    "h": 99.3
  },
  "luminance": 0.35325
}

Semantic roles & 50–950 ramp

primary
#B2A140
secondary
#8A93C4
accent
#65D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A140

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

Preview Lab → · Contrast checker → · Palette generator →

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