#B2A42F#B2A42F

#B2A42F is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.0% C 0.133 H 102.3°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#B2A42F
RGBrgb(178, 164, 47)
HSLhsl(54, 58%, 44%)
HSVhsv(54, 74%, 70%)
CMYKcmyk(0%, 7.9%, 73.6%, 30.2%)
CIE-LABlab(66.69, -8.04, 58.85)
CIE-LCHlch(66.69, 59.39, 97.78°)
OKLaboklab(71.01% -0.0283 0.1299)
OKLCHoklch(71.01% 0.133 102.3)
XYZxyz(32.1501, 36.2225, 7.9869)
Luminance0.3622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A42F #2F3DB2
analogous
#B2632F #B2A42F #7FB22F
triadic
#B2A42F #2FB2A4 #A42FB2
tetradic
#B2A42F #2FB263 #2F3DB2 #B22F7F
square
#B2A42F #2FB263 #2F3DB2 #B22F7F
split-complementary
#B2A42F #2F7FB2 #632FB2
monochromatic
#514B15 #827722 #B2A42F #D0C24E #DDD37E

Accessibility & contrast

On white

2.55
#B2A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#B2A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A42F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A42F#FFFFFF#000000##000000
##B2A42F1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1A
Deuteranopia (green-blind)
#B8A537
Tritanopia (blue-blind)
#C0988D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a42f;
/* rgb */ color: rgb(178, 164, 47);
/* oklch */ color: oklch(71.0% 0.133 102.3);
Tailwind
colors: {
  custom: {
    50: '#cdbe70',
    500: '#b2a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a42f;
$custom-light: #cdbe70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a42f",
  "rgb": {
    "r": 178,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 53.588,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.7101,
    "c": 0.13291,
    "h": 102.3
  },
  "luminance": 0.36221
}

Semantic roles & 50–950 ramp

primary
#B2A42F
secondary
#777FC6
accent
#57E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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