#AFB262#AFB262

#AFB262 is a light, moderate yellow. Relative luminance 0.418; OKLCH L 74.3% C 0.103 H 110.6°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#AFB262
RGBrgb(175, 178, 98)
HSLhsl(62, 34%, 54%)
HSVhsv(62, 45%, 70%)
CMYKcmyk(1.7%, 0%, 44.9%, 30.2%)
CIE-LABlab(70.76, -12.85, 40.34)
CIE-LCHlch(70.76, 42.34, 107.67°)
OKLaboklab(74.34% -0.0363 0.0968)
OKLCHoklch(74.34% 0.103 110.6)
XYZxyz(35.8048, 41.8373, 17.7422)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB262 #6562B2
analogous
#B28D62 #AFB262 #87B262
triadic
#AFB262 #62AFB2 #B262AF
tetradic
#AFB262 #62B28D #6562B2 #B26287
square
#AFB262 #62B28D #6562B2 #B26287
split-complementary
#AFB262 #6287B2 #8D62B2
monochromatic
#656733 #8D9047 #AFB262 #C4C68B #D9DAB4

Accessibility & contrast

On white

2.24
#AFB262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#AFB262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB262
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB262#FFFFFF#000000##000000
##AFB2621.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAC5B
Deuteranopia (green-blind)
#BEAE66
Tritanopia (blue-blind)
#B8A99F
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb262;
/* rgb */ color: rgb(175, 178, 98);
/* oklch */ color: oklch(74.3% 0.103 110.6);
Tailwind
colors: {
  custom: {
    50: '#c8c890',
    500: '#afb262',
    950: '#000000',
  },
}
SCSS
$custom: #afb262;
$custom-light: #c8c890;
$custom-dark: #000000;
JSON
{
  "hex": "#afb262",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 98
  },
  "hsl": {
    "h": 62.25,
    "s": 34.188,
    "l": 54.118
  },
  "oklch": {
    "l": 0.74343,
    "c": 0.1034,
    "h": 110.6
  },
  "luminance": 0.41837
}

Semantic roles & 50–950 ramp

primary
#AFB262
secondary
#A8A7C9
accent
#5ECA62
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130D
muted
#82827D

Preview Lab

Preview with #AFB262

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

Preview Lab → · Contrast checker → · Palette generator →

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