#B6A42F#B6A42F

#B6A42F is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.4% C 0.133 H 100.2°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#B6A42F
RGBrgb(182, 164, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 74%, 71%)
CMYKcmyk(0%, 9.9%, 74.2%, 28.6%)
CIE-LABlab(67.05, -6.28, 59.32)
CIE-LCHlch(67.05, 59.65, 96.04°)
OKLaboklab(71.39% -0.0235 0.1307)
OKLCHoklch(71.39% 0.133 100.2)
XYZxyz(33.0815, 36.7028, 8.0306)
Luminance0.3670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B6A42F #2F41B6
analogous
#B6612F #B6A42F #85B62F
triadic
#B6A42F #2FB6A4 #A42FB6
tetradic
#B6A42F #2FB661 #2F41B6 #B62F85
square
#B6A42F #2FB661 #2F41B6 #B62F85
split-complementary
#B6A42F #2F85B6 #612FB6
monochromatic
#554C16 #857822 #B6A42F #D2C150 #DED281

Accessibility & contrast

On white

2.52
#B6A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#B6A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B6A42F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B6A42F#FFFFFF#000000##000000
##B6A42F1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1A
Deuteranopia (green-blind)
#B9A637
Tritanopia (blue-blind)
#C4988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b6a42f;
/* rgb */ color: rgb(182, 164, 47);
/* oklch */ color: oklch(71.4% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#d0be70',
    500: '#b6a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b6a42f;
$custom-light: #d0be70;
$custom-dark: #000000;
JSON
{
  "hex": "#b6a42f",
  "rgb": {
    "r": 182,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 52,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71385,
    "c": 0.13281,
    "h": 100.2
  },
  "luminance": 0.36701
}

Semantic roles & 50–950 ramp

primary
#B6A42F
secondary
#7984C7
accent
#5BE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B6A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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