#B2A242#B2A242

#B2A242 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.117 H 99.9°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B2A242
RGBrgb(178, 162, 66)
HSLhsl(51, 46%, 48%)
HSVhsv(51, 63%, 70%)
CMYKcmyk(0%, 9%, 62.9%, 30.2%)
CIE-LABlab(66.29, -5.91, 50.62)
CIE-LCHlch(66.29, 50.96, 96.66°)
OKLaboklab(70.74% -0.0201 0.1157)
OKLCHoklch(70.74% 0.117 99.9)
XYZxyz(32.2651, 35.7004, 10.3445)
Luminance0.3570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A242 #4252B2
analogous
#B26A42 #B2A242 #8AB242
triadic
#B2A242 #42B2A2 #A242B2
tetradic
#B2A242 #42B26A #4252B2 #B2428A
square
#B2A242 #42B26A #4252B2 #B2428A
split-complementary
#B2A242 #428AB2 #6A42B2
monochromatic
#595121 #857931 #B2A242 #C8BA6A #D8CF96

Accessibility & contrast

On white

2.58
#B2A242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B2A242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A242
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A242#FFFFFF#000000##000000
##B2A2421.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E37
Deuteranopia (green-blind)
#B5A447
Tritanopia (blue-blind)
#BF978E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a242;
/* rgb */ color: rgb(178, 162, 66);
/* oklch */ color: oklch(70.7% 0.117 99.9);
Tailwind
colors: {
  custom: {
    50: '#ccbd7b',
    500: '#b2a242',
    950: '#000000',
  },
}
SCSS
$custom: #b2a242;
$custom-light: #ccbd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a242",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 51.429,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70739,
    "c": 0.11741,
    "h": 99.9
  },
  "luminance": 0.35699
}

Semantic roles & 50–950 ramp

primary
#B2A242
secondary
#8C94C4
accent
#65D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A242

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

Preview Lab → · Contrast checker → · Palette generator →

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