#B2A042#B2A042

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

Color values

HEX#B2A042
RGBrgb(178, 160, 66)
HSLhsl(50, 46%, 48%)
HSVhsv(50, 63%, 70%)
CMYKcmyk(0%, 10.1%, 62.9%, 30.2%)
CIE-LABlab(65.75, -4.84, 50.03)
CIE-LCHlch(65.75, 50.27, 95.53°)
OKLaboklab(70.31% -0.0171 0.1144)
OKLCHoklch(70.31% 0.116 98.5)
XYZxyz(31.9156, 35.0014, 10.2280)
Luminance0.3500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A042 #4254B2
analogous
#B26842 #B2A042 #8CB242
triadic
#B2A042 #42B2A0 #A042B2
tetradic
#B2A042 #42B268 #4254B2 #B2428C
square
#B2A042 #42B268 #4254B2 #B2428C
split-complementary
#B2A042 #428CB2 #6842B2
monochromatic
#595021 #857831 #B2A042 #C8B86A #D8CE96

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A042#FFFFFF#000000##000000
##B2A0421.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)
#AF9C37
Deuteranopia (green-blind)
#B4A247
Tritanopia (blue-blind)
#BF958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a042;
/* rgb */ color: rgb(178, 160, 66);
/* oklch */ color: oklch(70.3% 0.116 98.5);
Tailwind
colors: {
  custom: {
    50: '#ccbb7a',
    500: '#b2a042',
    950: '#000000',
  },
}
SCSS
$custom: #b2a042;
$custom-light: #ccbb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a042",
  "rgb": {
    "r": 178,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 50.357,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.7031,
    "c": 0.11569,
    "h": 98.5
  },
  "luminance": 0.35
}

Semantic roles & 50–950 ramp

primary
#B2A042
secondary
#8C95C4
accent
#67D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #B2A042

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

Preview Lab → · Contrast checker → · Palette generator →

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