#B7C042#B7C042

#B7C042 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 77.7% C 0.147 H 113.3°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#B7C042
RGBrgb(183, 192, 66)
HSLhsl(64, 50%, 51%)
HSVhsv(64, 66%, 75%)
CMYKcmyk(4.7%, 0%, 65.6%, 24.7%)
CIE-LABlab(74.93, -19.23, 59.89)
CIE-LCHlch(74.93, 62.90, 107.80°)
OKLaboklab(77.72% -0.0581 0.1351)
OKLCHoklch(77.72% 0.147 113.3)
XYZxyz(39.3625, 48.1607, 12.3756)
Luminance0.4816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C042 #4B42C0
analogous
#C08A42 #B7C042 #78C042
triadic
#B7C042 #42B7C0 #C042B7
tetradic
#B7C042 #42C08A #4B42C0 #C04278
square
#B7C042 #42C08A #4B42C0 #C04278
split-complementary
#B7C042 #4278C0 #8A42C0
monochromatic
#616622 #8D9431 #B7C042 #C8CF70 #DADF9E

Accessibility & contrast

On white

1.98
#B7C042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#B7C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C042
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C042#FFFFFF#000000##000000
##B7C0421.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB730
Deuteranopia (green-blind)
#CEBA4B
Tritanopia (blue-blind)
#C3B5A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b7c042;
/* rgb */ color: rgb(183, 192, 66);
/* oklch */ color: oklch(77.7% 0.147 113.3);
Tailwind
colors: {
  custom: {
    50: '#d0d27d',
    500: '#b7c042',
    950: '#000000',
  },
}
SCSS
$custom: #b7c042;
$custom-light: #d0d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c042",
  "rgb": {
    "r": 183,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 64.286,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77723,
    "c": 0.1471,
    "h": 113.3
  },
  "luminance": 0.4816
}

Semantic roles & 50–950 ramp

primary
#B7C042
secondary
#9793CB
accent
#4EDA58
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B7C042

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

Preview Lab → · Contrast checker → · Palette generator →

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