#B2A02F#B2A02F

#B2A02F is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.1% C 0.130 H 99.9°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#B2A02F
RGBrgb(178, 160, 47)
HSLhsl(52, 58%, 44%)
HSVhsv(52, 74%, 70%)
CMYKcmyk(0%, 10.1%, 73.6%, 30.2%)
CIE-LABlab(65.60, -5.92, 57.80)
CIE-LCHlch(65.60, 58.10, 95.85°)
OKLaboklab(70.15% -0.0223 0.1277)
OKLCHoklch(70.15% 0.13 99.9)
XYZxyz(31.4455, 34.8133, 7.7521)
Luminance0.3481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A02F #2F41B2
analogous
#B25F2F #B2A02F #83B22F
triadic
#B2A02F #2FB2A0 #A02FB2
tetradic
#B2A02F #2FB25F #2F41B2 #B22F83
square
#B2A02F #2FB25F #2F41B2 #B22F83
split-complementary
#B2A02F #2F83B2 #5F2FB2
monochromatic
#514915 #827422 #B2A02F #D0BE4E #DDD07E

Accessibility & contrast

On white

2.64
#B2A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#B2A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A02F
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A02F#FFFFFF#000000##000000
##B2A02F1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#B5A236
Tritanopia (blue-blind)
#C0948A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b2a02f;
/* rgb */ color: rgb(178, 160, 47);
/* oklch */ color: oklch(70.1% 0.130 99.9);
Tailwind
colors: {
  custom: {
    50: '#cdbb70',
    500: '#b2a02f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a02f;
$custom-light: #cdbb70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a02f",
  "rgb": {
    "r": 178,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 51.756,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70147,
    "c": 0.12958,
    "h": 99.9
  },
  "luminance": 0.34812
}

Semantic roles & 50–950 ramp

primary
#B2A02F
secondary
#7782C6
accent
#5CE146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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