#B7A02C#B7A02C

#B7A02C is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.132 H 97.4°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B7A02C
RGBrgb(183, 160, 44)
HSLhsl(50, 61%, 45%)
HSVhsv(50, 76%, 72%)
CMYKcmyk(0%, 12.6%, 76%, 28.2%)
CIE-LABlab(66.05, -3.84, 59.49)
CIE-LCHlch(66.05, 59.61, 93.69°)
OKLaboklab(70.61% -0.017 0.1304)
OKLCHoklch(70.61% 0.132 97.4)
XYZxyz(32.5555, 35.3924, 7.4990)
Luminance0.3539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A02C #2C43B7
analogous
#B75B2C #B7A02C #89B72C
triadic
#B7A02C #2CB7A0 #A02CB7
tetradic
#B7A02C #2CB75B #2C43B7 #B72C89
square
#B7A02C #2CB75B #2C43B7 #B72C89
split-complementary
#B7A02C #2C89B7 #5B2CB7
monochromatic
#544A14 #867520 #B7A02C #D4BE4C #E0D07E

Accessibility & contrast

On white

2.60
#B7A02C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B7A02C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A02C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A02C#FFFFFF#000000##000000
##B7A02C1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C15
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#C6938A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b7a02c;
/* rgb */ color: rgb(183, 160, 44);
/* oklch */ color: oklch(70.6% 0.132 97.4);
Tailwind
colors: {
  custom: {
    50: '#d1bb6e',
    500: '#b7a02c',
    950: '#000000',
  },
}
SCSS
$custom: #b7a02c;
$custom-light: #d1bb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a02c",
  "rgb": {
    "r": 183,
    "g": 160,
    "b": 44
  },
  "hsl": {
    "h": 50.072,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70608,
    "c": 0.13154,
    "h": 97.4
  },
  "luminance": 0.35391
}

Semantic roles & 50–950 ramp

primary
#B7A02C
secondary
#7684C8
accent
#5EE443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #B7A02C

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

Preview Lab → · Contrast checker → · Palette generator →

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