#B7C162#B7C162

#B7C162 is a light, vivid yellow. Relative luminance 0.491; OKLCH L 78.3% C 0.120 H 114.2°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#B7C162
RGBrgb(183, 193, 98)
HSLhsl(66, 43%, 57%)
HSVhsv(66, 49%, 76%)
CMYKcmyk(5.2%, 0%, 49.2%, 24.3%)
CIE-LABlab(75.51, -17.24, 46.25)
CIE-LCHlch(75.51, 49.36, 110.44°)
OKLaboklab(78.29% -0.0492 0.1098)
OKLCHoklch(78.29% 0.12 114.2)
XYZxyz(40.8036, 49.0896, 18.8786)
Luminance0.4909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C162 #6C62C1
analogous
#C19C62 #B7C162 #88C162
triadic
#B7C162 #62B7C1 #C162B7
tetradic
#B7C162 #62C19C #6C62C1 #C16288
square
#B7C162 #62C19C #6C62C1 #C16288
split-complementary
#B7C162 #6288C1 #9C62C1
monochromatic
#717930 #9AA541 #B7C162 #CBD28E #DFE4BA

Accessibility & contrast

On white

1.94
#B7C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.82
#B7C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C162
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C162#FFFFFF#000000##000000
##B7C1621.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB959
Deuteranopia (green-blind)
#CCBB67
Tritanopia (blue-blind)
#C1B8AB
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b7c162;
/* rgb */ color: rgb(183, 193, 98);
/* oklch */ color: oklch(78.3% 0.120 114.2);
Tailwind
colors: {
  custom: {
    50: '#ced391',
    500: '#b7c162',
    950: '#000000',
  },
}
SCSS
$custom: #b7c162;
$custom-light: #ced391;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c162",
  "rgb": {
    "r": 183,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 66.316,
    "s": 43.379,
    "l": 57.059
  },
  "oklch": {
    "l": 0.78286,
    "c": 0.12029,
    "h": 114.2
  },
  "luminance": 0.49089
}

Semantic roles & 50–950 ramp

primary
#B7C162
secondary
#B0ACD3
accent
#55D362
background
#FCFCF9
surface
#F9F9F1
border
#D2D2CB
text
#14140D
muted
#82827E

Preview Lab

Preview with #B7C162

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

Preview Lab → · Contrast checker → · Palette generator →

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