#B7C142#B7C142

#B7C142 is a light, vivid yellow. Relative luminance 0.486; OKLCH L 77.9% C 0.148 H 113.7°. Best body text is #000000 at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#B7C142
RGBrgb(183, 193, 66)
HSLhsl(65, 51%, 51%)
HSVhsv(65, 66%, 76%)
CMYKcmyk(5.2%, 0%, 65.8%, 24.3%)
CIE-LABlab(75.20, -19.73, 60.18)
CIE-LCHlch(75.20, 63.33, 108.15°)
OKLaboklab(77.94% -0.0595 0.1358)
OKLCHoklch(77.94% 0.148 113.7)
XYZxyz(39.5828, 48.6013, 12.4490)
Luminance0.4860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C142 #4C42C1
analogous
#C18B42 #B7C142 #77C142
triadic
#B7C142 #42B7C1 #C142B7
tetradic
#B7C142 #42C18B #4C42C1 #C14277
square
#B7C142 #42C18B #4C42C1 #C14277
split-complementary
#B7C142 #4277C1 #8B42C1
monochromatic
#616722 #8D9531 #B7C142 #C9D070 #DADF9E

Accessibility & contrast

On white

1.96
#B7C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.72
#B7C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C142
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C142#FFFFFF#000000##000000
##B7C1421.001.9610.7210.72
#FFFFFF1.961.0021.0021.00
#00000010.7221.001.001.00
##00000010.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB830
Deuteranopia (green-blind)
#CEBA4B
Tritanopia (blue-blind)
#C3B6A7
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b7c142;
/* rgb */ color: rgb(183, 193, 66);
/* oklch */ color: oklch(77.9% 0.148 113.7);
Tailwind
colors: {
  custom: {
    50: '#d0d37d',
    500: '#b7c142',
    950: '#000000',
  },
}
SCSS
$custom: #b7c142;
$custom-light: #d0d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c142",
  "rgb": {
    "r": 183,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 64.724,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77944,
    "c": 0.14822,
    "h": 113.7
  },
  "luminance": 0.48601
}

Semantic roles & 50–950 ramp

primary
#B7C142
secondary
#9893CC
accent
#4EDA59
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B7C142

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

Preview Lab → · Contrast checker → · Palette generator →

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