#B2A12F#B2A12F

#B2A12F is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.130 H 100.5°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B2A12F
RGBrgb(178, 161, 47)
HSLhsl(52, 58%, 44%)
HSVhsv(52, 74%, 70%)
CMYKcmyk(0%, 9.6%, 73.6%, 30.2%)
CIE-LABlab(65.87, -6.45, 58.06)
CIE-LCHlch(65.87, 58.42, 96.34°)
OKLaboklab(70.36% -0.0238 0.1282)
OKLCHoklch(70.36% 0.13 100.5)
XYZxyz(31.6195, 35.1614, 7.8101)
Luminance0.3516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A12F #2F40B2
analogous
#B2602F #B2A12F #82B22F
triadic
#B2A12F #2FB2A1 #A12FB2
tetradic
#B2A12F #2FB260 #2F40B2 #B22F82
square
#B2A12F #2FB260 #2F40B2 #B22F82
split-complementary
#B2A12F #2F82B2 #602FB2
monochromatic
#514915 #827522 #B2A12F #D0BF4E #DDD17E

Accessibility & contrast

On white

2.61
#B2A12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B2A12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A12F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A12F#FFFFFF#000000##000000
##B2A12F1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1B
Deuteranopia (green-blind)
#B5A337
Tritanopia (blue-blind)
#C0958B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a12f;
/* rgb */ color: rgb(178, 161, 47);
/* oklch */ color: oklch(70.4% 0.130 100.5);
Tailwind
colors: {
  custom: {
    50: '#cdbc70',
    500: '#b2a12f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a12f;
$custom-light: #cdbc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a12f",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 52.214,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70362,
    "c": 0.13039,
    "h": 100.5
  },
  "luminance": 0.3516
}

Semantic roles & 50–950 ramp

primary
#B2A12F
secondary
#7781C6
accent
#5AE146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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