#AFB162#AFB162

#AFB162 is a light, moderate yellow. Relative luminance 0.414; OKLCH L 74.1% C 0.102 H 109.9°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFB162
RGBrgb(175, 177, 98)
HSLhsl(62, 34%, 54%)
HSVhsv(62, 45%, 69%)
CMYKcmyk(1.1%, 0%, 44.6%, 30.6%)
CIE-LABlab(70.48, -12.33, 40.01)
CIE-LCHlch(70.48, 41.86, 107.13°)
OKLaboklab(74.12% -0.0348 0.0961)
OKLCHoklch(74.12% 0.102 109.9)
XYZxyz(35.6065, 41.4408, 17.6761)
Luminance0.4144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB162 #6462B1
analogous
#B18C62 #AFB162 #88B162
triadic
#AFB162 #62AFB1 #B162AF
tetradic
#AFB162 #62B18C #6462B1 #B16288
square
#AFB162 #62B18C #6462B1 #B16288
split-complementary
#AFB162 #6288B1 #8C62B1
monochromatic
#656633 #8D8F47 #AFB162 #C4C58B #D9DAB4

Accessibility & contrast

On white

2.26
#AFB162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#AFB162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB162
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB162#FFFFFF#000000##000000
##AFB1621.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCAB5B
Deuteranopia (green-blind)
#BDAE66
Tritanopia (blue-blind)
#B9A89E
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb162;
/* rgb */ color: rgb(175, 177, 98);
/* oklch */ color: oklch(74.1% 0.102 109.9);
Tailwind
colors: {
  custom: {
    50: '#c8c890',
    500: '#afb162',
    950: '#000000',
  },
}
SCSS
$custom: #afb162;
$custom-light: #c8c890;
$custom-dark: #000000;
JSON
{
  "hex": "#afb162",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 98
  },
  "hsl": {
    "h": 61.519,
    "s": 33.617,
    "l": 53.922
  },
  "oklch": {
    "l": 0.74124,
    "c": 0.10219,
    "h": 109.9
  },
  "luminance": 0.4144
}

Semantic roles & 50–950 ramp

primary
#AFB162
secondary
#A7A7C8
accent
#5ECA61
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130D
muted
#82827D

Preview Lab

Preview with #AFB162

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

Preview Lab → · Contrast checker → · Palette generator →

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