#B7BA2A#B7BA2A

#B7BA2A is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.2% C 0.155 H 110.8°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#B7BA2A
RGBrgb(183, 186, 42)
HSLhsl(61, 63%, 45%)
HSVhsv(61, 77%, 73%)
CMYKcmyk(1.6%, 0%, 77.4%, 27.1%)
CIE-LABlab(73.12, -17.41, 66.64)
CIE-LCHlch(73.12, 68.88, 104.64°)
OKLaboklab(76.23% -0.0553 0.1453)
OKLCHoklch(76.23% 0.155 110.8)
XYZxyz(37.5066, 45.3533, 8.9684)
Luminance0.4535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7BA2A #2D2ABA
analogous
#BA752A #B7BA2A #6FBA2A
triadic
#B7BA2A #2AB7BA #BA2AB7
tetradic
#B7BA2A #2ABA75 #2D2ABA #BA2A6F
square
#B7BA2A #2ABA75 #2D2ABA #BA2A6F
split-complementary
#B7BA2A #2A6FBA #752ABA
monochromatic
#555613 #86881F #B7BA2A #D3D64B #E0E27D

Accessibility & contrast

On white

2.09
#B7BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#B7BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7BA2A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7BA2A#FFFFFF#000000##000000
##B7BA2A1.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B200
Deuteranopia (green-blind)
#CAB537
Tritanopia (blue-blind)
#C4AE9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b7ba2a;
/* rgb */ color: rgb(183, 186, 42);
/* oklch */ color: oklch(76.2% 0.155 110.8);
Tailwind
colors: {
  custom: {
    50: '#d0ce70',
    500: '#b7ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #b7ba2a;
$custom-light: #d0ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ba2a",
  "rgb": {
    "r": 183,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 61.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.76234,
    "c": 0.15546,
    "h": 110.8
  },
  "luminance": 0.45352
}

Semantic roles & 50–950 ramp

primary
#B7BA2A
secondary
#7876CA
accent
#42E645
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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