#B2A22F#B2A22F

#B2A22F is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.131 H 101.1°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B2A22F
RGBrgb(178, 162, 47)
HSLhsl(53, 58%, 44%)
HSVhsv(53, 74%, 70%)
CMYKcmyk(0%, 9%, 73.6%, 30.2%)
CIE-LABlab(66.15, -6.98, 58.32)
CIE-LCHlch(66.15, 58.74, 96.83°)
OKLaboklab(70.58% -0.0253 0.1288)
OKLCHoklch(70.58% 0.131 101.1)
XYZxyz(31.7950, 35.5123, 7.8686)
Luminance0.3551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A22F #2F3FB2
analogous
#B2612F #B2A22F #81B22F
triadic
#B2A22F #2FB2A2 #A22FB2
tetradic
#B2A22F #2FB261 #2F3FB2 #B22F81
square
#B2A22F #2FB261 #2F3FB2 #B22F81
split-complementary
#B2A22F #2F81B2 #612FB2
monochromatic
#514A15 #827622 #B2A22F #D0C04E #DDD17E

Accessibility & contrast

On white

2.59
#B2A22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#B2A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A22F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A22F#FFFFFF#000000##000000
##B2A22F1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1B
Deuteranopia (green-blind)
#B6A437
Tritanopia (blue-blind)
#C0968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a22f;
/* rgb */ color: rgb(178, 162, 47);
/* oklch */ color: oklch(70.6% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#cdbd70',
    500: '#b2a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a22f;
$custom-light: #cdbd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a22f",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 52.672,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70578,
    "c": 0.13121,
    "h": 101.1
  },
  "luminance": 0.35511
}

Semantic roles & 50–950 ramp

primary
#B2A22F
secondary
#7781C6
accent
#59E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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