#AFA268#AFA268

#AFA268 is a light, moderate yellow. Relative luminance 0.360; OKLCH L 71.0% C 0.079 H 97.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#AFA268
RGBrgb(175, 162, 104)
HSLhsl(49, 31%, 55%)
HSVhsv(49, 41%, 69%)
CMYKcmyk(0%, 7.4%, 40.6%, 31.4%)
CIE-LABlab(66.49, -3.77, 31.86)
CIE-LCHlch(66.49, 32.09, 96.75°)
OKLaboklab(70.98% -0.0097 0.078)
OKLCHoklch(70.98% 0.079 97.1)
XYZxyz(33.0989, 35.9551, 18.2905)
Luminance0.3595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA268 #6875AF
analogous
#AF7F68 #AFA268 #99AF68
triadic
#AFA268 #68AFA2 #A268AF
tetradic
#AFA268 #68AF7F #6875AF #AF6899
square
#AFA268 #68AF7F #6875AF #AF6899
split-complementary
#AFA268 #6899AF #7F68AF
monochromatic
#665E36 #8E824B #AFA268 #C4BB90 #D9D3B8

Accessibility & contrast

On white

2.56
#AFA268 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#AFA268 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA268
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA268#FFFFFF#000000##000000
##AFA2681.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9F64
Deuteranopia (green-blind)
#B0A46A
Tritanopia (blue-blind)
#B99A93
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa268;
/* rgb */ color: rgb(175, 162, 104);
/* oklch */ color: oklch(71.0% 0.079 97.1);
Tailwind
colors: {
  custom: {
    50: '#c8bd94',
    500: '#afa268',
    950: '#000000',
  },
}
SCSS
$custom: #afa268;
$custom-light: #c8bd94;
$custom-dark: #000000;
JSON
{
  "hex": "#afa268",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 104
  },
  "hsl": {
    "h": 49.014,
    "s": 30.736,
    "l": 54.706
  },
  "oklch": {
    "l": 0.7098,
    "c": 0.07863,
    "h": 97.1
  },
  "luminance": 0.35954
}

Semantic roles & 50–950 ramp

primary
#AFA268
secondary
#AAB0C8
accent
#74C761
background
#FCFBF9
surface
#F8F6F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA268

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

Preview Lab → · Contrast checker → · Palette generator →

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